public boolean visit(Comment s) throws Exception { Map<String, String> parameters = createInitialParameters(s); parameters.put("type", Comment.getCommentType(s.getCommentType())); xmlWriter.startTag("Comment", parameters); return true; }