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