GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME);
SchemaManager sm = gc.getBean(SchemaManager.class);
Metadata metadata = context.getBean(MetadataRepository.class).findOne(spec);
if (metadata == null)
throw new IdDoesNotExistException(spec.toString());
String uuid = metadata.getUuid();
final MetadataDataInfo dataInfo = metadata.getDataInfo();
String schema = dataInfo.getSchemaId();
String changeDate = dataInfo.getChangeDate().getDateAndTime();