Module module = registry.getModule(cl);
if (module != null && module.getDeterminedParentDomainName() != null)
{
//It is scoped
ClassLoaderSystem sys = ClassLoaderSystem.getInstance();
ClassLoaderDomain domain = sys.getDomain(module.getDeterminedDomainName());
boolean parentFirst = module.isJ2seClassLoadingCompliance();
ClassPool parentDomainPool = getParentUnitClassPool(cl);
pool = new ScopedJBoss5ClassPool(cl, parent, parentDomainPool, repository, getTempURL(module), parentFirst, domain);
}
else