else { LOG.warn("Giving up unable to read Descriptor.xml file");
else { LOG.warn("Giving up unable to read descriptor.xml file from classloader in " + this.getClass().getPackage() );
    private Descriptor()	{        try		{        	InputStream is = null;        	            //try to read the Descriptor from a file within the classpath        	is = Descriptor.class.getClassLoader().getResourceAsStream(file);        	if(is != null)        	{        		LOG.info("Reading Descriptor from classloader");        	}        	else        	{        		LOG.warn("Giving up unable to read Descriptor.xml file");                return;         	}                        // initialize xml parser            // we use eXist's in-memory DOM implementation to work            // around a bug in Xerces            SAXParserFactory factory = SAXParserFactory.newInstance();            factory.setNamespaceAware(true);;                        InputSource src = new InputSource(is);            SAXParser parser = factory.newSAXParser();            XMLReader reader = parser.getXMLReader();            SAXAdapter adapter = new SAXAdapter();            reader.setContentHandler(adapter);            reader.parse(src);                        Document doc = adapter.getDocument();                        //load <xquery-app> attribue settings            if(doc.getDocumentElement().getAttribute("request-replay-log").equals("true"))            {            	File logFile = new File("request-replay-log.txt");        		bufWriteReplayLog = new BufferedWriter(new FileWriter(logFile));            }                        //load <allow-source> settings            NodeList allowsourcexqueries = doc.getElementsByTagName("allow-source");            if (allowsourcexqueries.getLength() > 0)            {                configureAllowSourceXQuery((Element) allowsourcexqueries.item(0));            }                        //load <maps> settings            NodeList maps = doc.getElementsByTagName("maps");            if (maps.getLength() > 0)            {                configureMaps((Element) maps.item(0));            }        }        catch (SAXException e)		{            LOG.warn("error while reading descriptor file: " + file, e);            return;        }        catch (ParserConfigurationException cfg)		{            LOG.warn("error while reading descriptor file: " + file, cfg);            return;        }        catch (IOException io)		{            LOG.warn("error while reading descriptor file: " + file, io);            return;        }    }