try
{
loadingWithRepository.set(Boolean.TRUE);
ClassLoaderRepository repository = server.getClassLoaderRepository();
Class cls = loadClassFromRepository(name, repository);
if (trace) logger.trace("Class " + name + " found with ClassLoaderRepository " + repository);
return cls;
}
catch (ClassNotFoundException xx)
{
if (trace) logger.trace("Class " + name + " not found in ClassLoaderRepository, giving up", xx);