URL url = ClassLoader.getSystemResource(
URL url = Thread.currentThread().getContextClassLoader().getResource(
    private CatalinaAcegiUserRealm makeAdapter(String fileName)        throws Exception {        CatalinaAcegiUserRealm adapter = new CatalinaAcegiUserRealm();        URL url = ClassLoader.getSystemResource(                "net/sf/acegisecurity/adapters/" + fileName);        if (url == null) {            throw new Exception("Could not find " + fileName                + " - cannot continue");        }        File file = new File(url.getFile());        System.setProperty("catalina.base",            file.getParentFile().getAbsolutePath());        System.out.println("catalina.base set to: "            + System.getProperty("catalina.base"));        adapter.setAppContextLocation(fileName);        adapter.setKey(ADAPTER_KEY);        adapter.startForTest();        return adapter;    }