path=path.replaceAll("\\$\\{WEBAPP_HOME\\}", Configuration.getWebappHome().getAbsolutePath().replace("\\","/") );
path=path.replaceAll("\\$\\{WEBAPP_HOME\\}", Configuration.getWebappHome().getAbsolutePath().replace('\\','/') );
    private void configureAllowSourceXQuery(Element allowsourcexqueries)    {    	//Get the xquery element(s)    	NodeList nlXQuery = allowsourcexqueries.getElementsByTagName("xquery");    	    	//Setup the hashmap to hold the xquery elements    	allowSourceXQueryList = new String[nlXQuery.getLength()];    	    	Element elem = null; //temporary holds xquery elements    	    	//Iterate through the xquery elements        for(int i = 0; i < nlXQuery.getLength(); i++)        {            elem = (Element) nlXQuery.item(i);				//<xquery>            String path = elem.getAttribute("path");		//@path            //must be a path to allow source for            if(path == null)            {                LOG.warn("Error element 'xquery' requires an attribute 'path'");            	return;            }            path=path.replaceAll("\\$\\{WEBAPP_HOME\\}", Configuration.getWebappHome().getAbsolutePath().replace("\\","/") );//            System.out.println(path);            //store the path            allowSourceXQueryList[i] = path;        }    }