private ClassLoader findParentClassLoader() {
        ClassLoader parent = Thread.currentThread().getContextClassLoader();
        if (parent == null) {
            parent = this.getClass().getClassLoader();
            if (parent == null) {
                parent = ClassLoader.getSystemClassLoader();
            }
        }
        return parent;
    }
Locates the best class loader based on context (see class description).

@return The best parent classloader to use
starter/src/main/java/org/jivesoftware/openfire/starter/ServerStarter.java