Added if(LOG.isDebugEnabled()) before each LOG.debug()
debug logging