private Event buildMigrationOutputEvent(DigitalObject migrInput,
List<Parameter> migrParameters, long startTime, long duration,
ServiceDescription serDescr, String serEndpoint) {
List<Property> propList = new ArrayList<Property>();
Property pMigrDuration = new Property.Builder(URI
.create("planets://service/migration/performance/duration"))
.name("duration of migration")
.value(duration + "")
.description(
"Measurement of the Migration.Action taken on the batch processor's end")
.unit("time in millis").type("service characteristic").build();
Property pSerParams = new Property.Builder(URI
.create("planets://service/migration/configuration"))
.name("service configuration")
.value(migrParameters.toString())
.description(
"Record of the specific parameter configuration that were applied")
.type("service characteristic").build();
Property pOldContentLink = new Property.Builder(URI
.create("planets://data/predecessor"))
.name("prececessor reference")
.value(migrInput.getPermanentUri() + "")
.description(
"A reference to the predecessor object the migration result was derived from.")
.type("directional pointer").build();
if(serDescr!=null && serEndpoint!=null){
Property serDesc = new Property.Builder(URI
.create("planets://service/migration/description"))
.name("service description")
.value("endpoint: "+serEndpoint+" service description: "+serDescr.toString())
.description(
"Information about the tool and the service that has been called")