code: public void addSqlMapFileComment(Document document){
  
          if(suppressAllComments) return;
  
          ExtendedDocument ed = null;
          if(document instanceof ExtendedDocument) {
              ed = (ExtendedDocument) document;
          } else return;
  
          // if user doesn't supplied the xml source copyright then use the default
          String copyright = copyrights.getFormatted("XmlSource", startYear, endYear);
          if(StringUtils.isEmpty(copyright)){
              copyright = defaultCopyrights.getFormatted("XmlSource",startYear,endYear);
          }
          if(StringUtils.isNotEmpty(copyright)) {
              String[] array = copyright.split("\\|");
              StringBuilder sb = new StringBuilder();
              for(String str : array){
                  if(!str.startsWith("<!--") && !str.startsWith("-->")){
                      sb.append("    ");
                  }
                  sb.append(str);
                  OutputUtilities.newLine(sb);
              }
              ed.setFileComments(sb.toString());
          }
      }
docs: /*
  add the sql map file comment
  @param document mbg dom