Fixed more changes on CORE-2106 for getting ContentItemId and ParentItem...

...Id
Fixed indentation issues and changed LOGGER.debug to LOGGER.error