protected void onRecordUpdated(String xml) {
if (!this.isActive()) return;
try {
MetadataDocument mdDoc = new MetadataDocument();
Schema schema = mdDoc.prepareForView(requestContext,xml);
xml = mdDoc.prepareForFullViewing(xml);
publish(schema,xml);
} catch (Exception e) {
LOGGER.log(Level.SEVERE,"Publication to remote service failed.",e);
}
}