Set definitions = SystemDefinitionContainer.getDefinitionsFor(visibleFrom);
if (qName.indexOf('/')>0) {
// has system uuid ie real qName
for (Iterator iterator = definitions.iterator(); iterator.hasNext();) {
SystemDefinition systemDefinition = (SystemDefinition) iterator.next();
for (Iterator iterator1 = systemDefinition.getAspectDefinitions().iterator(); iterator1.hasNext();) {
AspectDefinition aspectDef = (AspectDefinition) iterator1.next();
if (qName.equals(aspectDef.getQualifiedName())) {
aspectDefinition = aspectDef;
break;
}
}
}
} else {
// fallback on class name lookup
// must find at most one
int found = 0;
for (Iterator iterator = definitions.iterator(); iterator.hasNext();) {
SystemDefinition systemDefinition = (SystemDefinition) iterator.next();
for (Iterator iterator1 = systemDefinition.getAspectDefinitions().iterator(); iterator1.hasNext();) {
AspectDefinition aspectDef = (AspectDefinition) iterator1.next();
if (qName.equals(aspectDef.getClassName())) {
aspectDefinition = aspectDef;
found++;
}