private static void ensureDocumentBuilder() throws DSSException {
  if (dbFactory != null) {
    return;
  }
  dbFactory=DocumentBuilderFactory.newInstance();
  dbFactory.setNamespaceAware(true);
  try {
    dbFactory.setFeature("http://xml.org/sax/features/external-general-entities",false);
    dbFactory.setFeature("http://xml.org/sax/features/external-parameter-entities",false);
    dbFactory.setXIncludeAware(false);
    dbFactory.setExpandEntityReferences(false);
  }
 catch (  ParserConfigurationException e) {
    throw new DSSException(e);
  }
}

private static void ensureDocumentBuilder ( ) throws DSSException { if ( dbFactory != null ) { return ; } dbFactory = DocumentBuilderFactory . newInstance ( ) ; dbFactory . setNamespaceAware ( true ) ; try { dbFactory . setFeature ( "http://xml.org/sax/features/external-general-entities" , false ) ; dbFactory . setFeature ( "http://xml.org/sax/features/external-parameter-entities" , false ) ; dbFactory . setXIncludeAware ( false ) ; dbFactory . setExpandEntityReferences ( false ) ; } catch ( ParserConfigurationException e ) { throw new DSSException ( e ) ; } }
guarantees that the xmlstring builder has been created .
