/* */ public synchronized Domain getDomain(ClassLoader classLoader, AspectManager parent)
/* */ {
/* 68 */ ClassLoader scopedClassLoader = ifScopedDeploymentGetScopedParentUclForCL(classLoader);
/* 69 */ if (scopedClassLoader != null)
/* */ {
/* 71 */ Domain scopedManager = null;
/* 72 */ synchronized (AOPClassPoolRepository.getInstance().getRegisteredCLs())
/* */ {
/* 74 */ Object loaderRepository = getLoaderRepository(classLoader);
/* 75 */ scopedManager = (Domain)this.scopedClassLoaderDomains.get(loaderRepository);
/* */
/* 78 */ if ((scopedManager != null) && (!scopedManager.isValid()))
/* */ {
/* 80 */ this.scopedClassLoaderDomains.remove(loaderRepository);
/* 81 */ scopedManager = null;
/* */ }
/* */
/* 84 */ if (scopedManager == null)
/* */ {
/* 86 */ scopedManager = getScopedClassLoaderDomain(scopedClassLoader, parent);
/* 87 */ this.log.debug("Created domain " + scopedManager + " for scoped deployment on: " + classLoader + "; identifying scoped ucl: " + scopedClassLoader);
/* */
/* 89 */ scopedManager.setInheritsBindings(true);
/* 90 */ scopedManager.setInheritsDeclarations(true);
/* */
/* 92 */ this.scopedClassLoaderDomains.put(loaderRepository, scopedManager);
/* */ }
/* 94 */ return scopedManager;
/* */ }