private static InputStream getResourceAsStream(String resourceName) {
        File file = new File(JiveGlobals.getHomePath() + File.separator +
                "resources" + File.separator + "spank" + File.separator + "scripts", resourceName);
        try {
            return new FileInputStream(file);
        }
        catch (FileNotFoundException e) {
            return null;
        }
    }
Combines and serves resources, such as javascript or css files.
xmppserver/src/main/java/org/jivesoftware/openfire/http/ResourceServlet.java