InputStream in = null;
try {
in = context.getResourceAsStream("/WEB-INF/aspectfaces-config.xml");
if (in == null) {
throw new ConfigurationFileNotFoundException("aspectfaces-config.xml not found in /WEB-INF/");
}
SAXReader reader = new SAXReader();
Document document = reader.read(in);
Element root = document.getRootElement();