// publish metadata per data element
if (elements != null) {
for (DataElement element: elements) {
if (Thread.currentThread().isInterrupted()) return;
XmlPropertySet xmlProps = element.getMetadata();
if (xmlProps != null) {
String xml = Val.chkStr(xmlProps.getXmlDoc());
if ((xml != null) && (xml.length() > 0)) {
String sourceUri = serviceInfo.getRestUrl()+"/"+element.getName();
LOGGER.finer("Publishing metadata for: "+sourceUri);
processor.publishMetadata(null,xml,sourceUri);
}