class ProcessInstanceMigrationServiceImpl implements ProcessInstanceMigrationService {

    @Override
    public MigrationReport migrate(String sourceDeploymentId, Long processInstanceId, String targetDeploymentId, String targetProcessId) {
        MigrationSpec migrationSpec = new MigrationSpec(sourceDeploymentId, processInstanceId, targetDeploymentId, targetProcessId);        
        MigrationManager migrationManager = new MigrationManager(migrationSpec);
        
        org.jbpm.runtime.manager.impl.migration.MigrationReport report = null;
        try {
            report = migrationManager.migrate();
        
        } catch (MigrationException e) {
            report = e.getReport();
        }
        return convert(report);
    }

    public  ProcessInstanceMigrationServiceImpl();

}