Map<String,List<Object>> constraints = getConstraintsFromNode(contentContext);
if (constraints.isEmpty()) {
log.debug("There is no constraint for the node having id: {}", id);
}
SolrContentItem sci = solrStore.create(contentContext.getContent(), id, contentContext.getNodeName(),
contentContext.getContentType(), constraints);
try {
solrStore.enhanceAndPut(sci, indexName);
} catch (StoreException e) {
log.error(e.getMessage(), e);
}
log.info("Document submitted to Contenthub.");
log.info("Id: {}", sci.getUri().getUnicodeString());
log.info("Mime type: {}", sci.getMimeType());
log.info("Constraints: {}", sci.getConstraints().toString());
}