this.servletContext = servletContext;
    public WebXmlParser(ServletContext servletContext) {        this.servletContext = servletContext;        URL url;        try {            url = servletContext.getResource(WEB_XML_PATH);        } catch (IOException ex) {            LOG.error("Can not get resource '" + WEB_XML_PATH + "'.", ex);            return;        }        InputStream inputStream;        try {            inputStream = url.openStream();        } catch (IOException ex) {            LOG.error("Can not open resource '" + WEB_XML_PATH + "'.", ex);            return;        }        try {            parse(inputStream, url.toString());        } finally {            try {                inputStream.close();            } catch (IOException e) {                LOG.error(e);            }        }    }