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