These debug statements need to be wrapped in if(log.isDebugEnabled()) etc.