aspect = super.getSuperPerVmAspect(def);
if (aspect != null)
{
Class<?> superAspectClass = aspect.getClass();
ClassLoaderDomain loadingDomain = getAspectRepository(superAspectClass);
ClassLoaderDomain myDomain = getClassLoaderDomain();
if (loadingDomain == myDomain)
{
//The parent does not load this class
myPerVMAspects.put(def, aspect);
}
else
{
//The class has been loaded by a parent domain, find out if we also have a copy
Class<?> myAspectClazz = myDomain.loadClass(aspect.getClass().getName());
if (myAspectClazz == superAspectClass)
{
notMyPerVMAspects.put(def, Boolean.TRUE);
}