MigrateEntry { public static String migrateComposition(Properties properties, UUID compositionId, boolean debug) throws Exception { setupDomainAccess(properties); UUID entryId = domainAccess.getContext().select(ENTRY.ID).from(ENTRY).where(ENTRY.COMPOSITION_ID.eq(compositionId)).fetchOne(ENTRY.ID); if (entryId == null) throw new IllegalArgumentException("Could not retrieve composition:"+compositionId); return migrateEntry(properties, entryId, debug); } MigrateEntry(Properties props);  MigrateEntry(I_DomainAccess access); static String dumpSerialized(Composition composition); static UUID saveUncommittedEntry(Composition composition); static String migrateComposition(Properties properties, UUID compositionId, boolean debug); static String migrateComposition(I_DomainAccess access, UUID compositionId, boolean debug); static String migrateEntry(Properties properties, UUID entryId, boolean debug); static String migrateEntry(I_DomainAccess access, UUID entryId, boolean debug); static Composition migrate(String jsonEntry, String templateId); static void migrateAll(boolean debug); static void main(String[] args);  }
@Test public void testMigrateSingleComposition() throws Exception { UUID uuid = UUID.fromString("8bcf593c-893d-4325-8fcc-3fa5ca194f38"); MigrateEntry migrateEntry = new MigrateEntry(testDomainAccess); String out = migrateEntry.migrateComposition(testDomainAccess, uuid, false); System.out.println(out); }