/** * Pick the best class loader * * @return the class loader */ public ClassLoader getClassLoader() { // Choose the child loader as it will use the parent if need be // If they are not related then choose the context loader ClassLoader loader = pickLoader(Thread.currentThread().getContextClassLoader(), owner.getClassLoader()); return pickLoader(loader, ClassLoader.getSystemClassLoader()); }