// prepare the data of the sample record for migration
FileObject sampleFile = new FileObject(sampleObject.getData().getData(), sampleObject.getFullname());
RepresentationObject representationObject = new RepresentationObject(new FileObject[]{sampleFile});
// the action parameters specify which migration service is called
MigrationPath migrationPath = new MigrationPath();
LinkedList<String> urls = new LinkedList<String>();
for (Parameter param : action.getParams()) {
urls.add(param.getValue());
}
String[] urlArr = urls.toArray(new String[]{});
migrationPath.setAccessPoints(urlArr);
/*
* convert source object
*/
eu.planets_project.pp.plato.services.crib_integration.remoteclient.MigrationResult migrationResult = metaconverterService.convert(representationObject, migrationPath);
/*