Delivery4/lab4_p4_2/src/balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/Utils.java
public static Document createNewDocument() throws ParserConfigurationException {

        DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
        DocumentBuilder docBuilder = null;
        Document doc = null;
        docBuilder = docFactory.newDocumentBuilder();
        doc = docBuilder.newDocument();
        return doc;
    }
/**
     * Create Document Object
     *
     * @return Document Object
     * @throws ParserConfigurationException  throws
     */
Create Document Object
@return Document Object
@throws ParserConfigurationException  throws
Create Document Object @return Document Object @throws ParserConfigurationException throws
public static Document createNewDocument() throws ParserConfigurationException {
        DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
        DocumentBuilder docBuilder = null;
        Document doc = null;
        docBuilder = docFactory.newDocumentBuilder();
        doc = docBuilder.newDocument();
        return doc;
    }
public static Document createNewDocument ( ) throws ParserConfigurationException { DocumentBuilderFactory docFactory = DocumentBuilderFactory . newInstance ( ) ; DocumentBuilder docBuilder = null ; Document doc = null ; docBuilder = docFactory . newDocumentBuilder ( ) ; doc = docBuilder . newDocument ( ) ; return doc ; }
Create Document Object
 @return Document Object
 @throws ParserConfigurationException  throws
Create Document Object @return Document Object @throws ParserConfigurationException throws