if (!(loader instanceof RepositoryClassLoader)) return false; return ((RepositoryClassLoader) loader).getLoaderRepository() != null;