@Override
    public void onMetaData(ObjectNode node) throws IOException {
        String fromVersion = node.get("apimanVersion").asText(); //$NON-NLS-1$
        String toVersion = this.getVersion().getVersionString();

        chain = VersionMigrators.chain(fromVersion, toVersion);
        
        if (chain.hasMigrators()) {
            logger.info(Messages.i18n.format("DataMigrator.MigratingNow", fromVersion)); //$NON-NLS-1$
            chain.migrateMetaData(node);
            node.put("apimanVersion", toVersion); //$NON-NLS-1$
        }
        writer.writeMetaData(node);
    }
@see io.apiman.manager.api.migrator.IReaderHandler#onMetaData(com.fasterxml.jackson.databind.node.ObjectNode)
manager/api/migrator/src/main/java/io/apiman/manager/api/migrator/DataMigrator.java