/** * Returns a {@link ClassLoaderRepository} based on the class loader returned by {@link * #getDefaultClassLoader()}. * * @return a {@link ClassLoaderRepository} that contains a single class loader, returned by {@link * #getDefaultClassLoader()}. */ public ClassLoaderRepository getClassLoaderRepository() { // We return a new ClassLoaderRepository each time this method is // called. This is by design, because there's no guarantee that // getDefaultClassLoader() will always return the same class loader. return Util.getSingleClassLoaderRepository(getDefaultClassLoader()); }