docs: private InputStream getStreamForLocation(final String location, final ServletContext context) throws FileNotFoundException {
          String fileLocation = StringUtils.replaceVariables(location, new HashMap<String, Object>(), true);  
             if (fileLocation.startsWith(PREFIX_FILE)) {
                return new FileInputStream(fileLocation.substring(PREFIX_FILE.length()));
             } else if (fileLocation.startsWith(PREFIX_CLASSPATH)){ 
                    return getClass().getResourceAsStream(fileLocation.substring(PREFIX_CLASSPATH.length()));
             } else {
                 if (fileLocation.startsWith(PREFIX_WAR)) {
                     fileLocation = fileLocation.substring(PREFIX_WAR.length());
                 }
                return context.getResourceAsStream(fileLocation);
             }  
      }