/** * Creates a privileged class loader that finds resources for the supplied * class that may not be in the class' package. You can use this within base * classes by passing getClass() to load resources for a derived class. * * @param resourceOwner * is the owner of the resource * @return the CrossWire Class Loader */ public static CWClassLoader instance(Class<?> resourceOwner) { return AccessController.doPrivileged(new PrivilegedLoader<CWClassLoader>(resourceOwner)); }