MGraph additionalMetadata = getAdditionalMetadataFromNode(contentContext);
if (additionalMetadata.isEmpty()) {
log.debug("There is no additional metadata for the node having id: {}", id);
}
ContentItem ci = null;
try {
ci = solrStore.create(contentContext.getContent(), contentItemId, contentContext.getNodeName(),
contentContext.getContentType());
ci.addPart(ADDITIONAL_METADATA_URI, additionalMetadata);
solrStore.enhanceAndPut(ci, indexName, null);
} catch (StoreException e) {
log.error(e.getMessage(), e);
}
log.info("Document submitted to Contenthub.");
log.info("Id: {}", ci.getUri().getUnicodeString());
log.info("Mime type: {}", ci.getMimeType());
}