class ResourceLoader {

    public static ClassLoader getDefaultClassLoader() {
        // We do not use the system class loader because it does not work with JNLP/Webstart applications.
        // A quote from a FAQ at java.sun.com:
        //
        // Java Web Start uses a user-level classloader to load all the application resources specified in the JNLP file.
        // This classloader implements the security model and the downloading model defined by the JNLP specification.
        // This is no different than how the AppletViewer or the Java Plug-In works.
        // This has the, unfortunate, side-effect that Class.forName will not find any resources that are defined in the
        // JNLP file. The same is true for looking up resources and classes using the system class loader
        // (ClassLoader.getSystemClassLoader).
        //
        return defaultClassLoader;
    }

}