code: public static synchronized Document getDefaultDocument()
      {
          if (defaultDocument == null)
          {
              DocumentBuilderFactory documentBuilderFactory = 
                  DocumentBuilderFactory.newInstance();
              DocumentBuilder documentBuilder = null;
              try
              {
                  documentBuilder = documentBuilderFactory.newDocumentBuilder();
              }
              catch (ParserConfigurationException e)
              {
                  // Can not happen, since it's the default configuration
                  throw new XmlException("Could not create default document", e);
              }
              defaultDocument = documentBuilder.newDocument();
          }
          return defaultDocument;
      }
docs: Returns a default XML document
  
  @return The default XML document