private static DOMImplementation jaxpDOMImplementation(){
  DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
  factory.setNamespaceAware(true);
  DocumentBuilder builder;
  try {
    builder=factory.newDocumentBuilder();
  }
 catch (  ParserConfigurationException e) {
    throw new RuntimeException(e);
  }
  return builder.getDOMImplementation();
}

private static DOMImplementation jaxpDOMImplementation ( ) { DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; factory . setNamespaceAware ( true ) ; DocumentBuilder builder ; try { builder = factory . newDocumentBuilder ( ) ; } catch ( ParserConfigurationException e ) { throw new RuntimeException ( e ) ; } return builder . getDOMImplementation ( ) ; }
returns the jaxp dom implementation .
