- tool.getSchemaCreator(config).doCreation(metadata, options, source, target);
+ ExceptionHandlerCollectingImpl handler =
+ new ExceptionHandlerCollectingImpl();
+
+ ExecutionOptions options =
+ SchemaManagementToolCoordinator.buildExecutionOptions(
+ registry
+ .getService(ConfigurationService.class)
+ .getSettings(),
+ handler
+ );
+
+ Map config = options.getConfigurationValues();
+
+ tool.getSchemaMigrator(config).doMigration(metadata, options, target);
+
+ return handler;