code: protected static boolean writeXMLType(Output out, Object xml) {
          log.trace("writeXMLType");
          // If it's a Document write it as Document
          if (xml instanceof Document) {
              writeDocument(out, (Document) xml);
          } else {
              return false;
          }
          return true;
      }
docs: Writes an xml type out to the output
  
  @param out
  Output writer
  @param xml
  XML
  @return boolean <tt>true</tt> if object was successfully written, <tt>false</tt> otherwise