code: public void logComment(String message) throws IOException
     {
        if (reportContext.get() != null)
        {
           reportContext.get().addComment(message);
        }
        else
        {
           writeMessage(message);
        }
     }
docs: Adds comment to log.