final SystemDefinition definition, final CtClass cg, final Context context,
final ExpressionContext ctx) {
boolean isClassAdvised = false;
List interfaceIntroDefs = definition.getInterfaceIntroductionDefinitions(ctx);
for (Iterator it = interfaceIntroDefs.iterator(); it.hasNext();) {
InterfaceIntroductionDefinition introductionDef = (InterfaceIntroductionDefinition)it.next();
List interfaceClassNames = introductionDef.getInterfaceClassNames();
if (addInterfaces(interfaceClassNames, cg)) {
isClassAdvised = true;
}
}
List introDefs = definition.getIntroductionDefinitions(ctx);
for (Iterator it = introDefs.iterator(); it.hasNext();) {
IntroductionDefinition introductionDef = (IntroductionDefinition)it.next();
List interfaceClassNames = introductionDef.getInterfaceClassNames();
if (addInterfaces(interfaceClassNames, cg)) {
isClassAdvised = true;
}
}
if (isClassAdvised) {