* events and to persist the object within the JCR repository
*/
private URI runMigration(Migrate migrationService,
URI digORef, URI inputFormat, URI outputFormat, boolean endOfRoundtripp) throws Exception {
MigrationWFWrapper migrWrapper = new MigrationWFWrapper(this,
this.processingDigo, migrationService, digORef, endOfRoundtripp);
//possibly using identification service to determine the input/output format
if(inputFormat!=null){
migrWrapper.setInputFormat(inputFormat);
}
if(outputFormat!=null){
migrWrapper.setOutputFormat(outputFormat);
}
//specifying the location where to store migration results
migrWrapper.setDataRepository(DataRegistryFactory.createDataRegistryIdFromName("/experiment-files/executions/"));
return migrWrapper.runMigration();
}