throws Exception { super(); this.initPrimitives(); this.repository = repository; DocumentBuilder builder = DocumentBuilderFactory.newInstance() .newDocumentBuilder(); Document document = builder.parse(file); this.normalize(document); Element root = document.getDocumentElement(); this.buildMethodsToInspect(root); reNotInspect = this.buildPattern(root, "notInspect"); methodsNoRemove = new HashSet(); reNotRemove = this.buildPattern(root, "notRemove");  }
throws Exception { super(); this.initPrimitives(); this.repository = repository; runtimeLoadedClass = new HashSet(); methodsNoRemove = new HashSet(); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setValidating(true); DocumentBuilder builder = factory.newDocumentBuilder(); builder.setErrorHandler(new XMLErrorHandler()); Document document = builder.parse(file); this.normalize(document); Element root = document.getDocumentElement(); this.buildMethodsToInspect(root); reNotInspect = this.buildPattern(root, "notInspect"); reNotRemove = this.buildPattern(root, "notRemove"); }
    public XMLMethodInspector(File file, Repository repository)            throws Exception {        super();        this.initPrimitives();        this.repository = repository;        DocumentBuilder builder = DocumentBuilderFactory.newInstance()                .newDocumentBuilder();        Document document = builder.parse(file);        this.normalize(document);        Element root = document.getDocumentElement();        this.buildMethodsToInspect(root);        reNotInspect = this.buildPattern(root, "notInspect");        methodsNoRemove = new HashSet();        reNotRemove = this.buildPattern(root, "notRemove");    }