if (elMd == null)
throw new MetadataNotFoundEx(id);
if (addRefs) { // metadata.show for GeoNetwork needs geonet:element
elMd = dm.enumerateTree(elMd);
}
//
// setting schemaLocation
// TODO currently it's only set for ISO metadata - this should all move