return null;
}
public MigrationResult migrate(PreservationActionDefinition action,
SampleObject sampleObject) throws PlatoServiceException {
MigrationService service = new MigrationService();
long start = System.nanoTime();
String settings = "";
if (action.isExecute()) {
settings = action.getParamByName("settings");
}
MigrationResult result = service.migrate(sampleObject.getData().getData(),
action.getUrl(),
settings);
// provide a nice name for the resulting object
setResultName(result, sampleObject);
long duration = (System.nanoTime()-start)/(1000000);
service.addExperience(result.getFeedbackKey(), action.getUrl(),
new Measurement("roundtripTimeMS",new Double(duration)));
return result;
}