for(FieldMapping siteMapping : siteMapper.getMappings()){
mapper.addMapping(siteMapping);
}
//TODO: As soon as MappingActivities are implemented we need to add such
// information to the EntityMapping instance!
mapper.applyMappings(remoteEntity.getRepresentation(),
localEntity.getRepresentation(),valueFactory);
//set general metadata
managedEntity.setCreated(new Date());
//set the metadata required by the referenced site
managedEntity.addAttributionLink(site.getConfiguration().getAttributionUrl());