AttribDefSystem system = (AttribDefSystem)joinPoint.getSystem();
// TODO: handle attribdef model
}
else {
XmlDefSystem system = (XmlDefSystem)joinPoint.getSystem();
for (int i = 0; i < joinPoint.getPointcuts().length; i++) {
for (int j = 0; j < joinPoint.getPointcuts()[i].getAdviceIndexes().length; j++) {
if (system.getAdvice(joinPoint.getPointcuts()[i].
getAdviceIndex(j)).getName().equals(adviceName)) {
iFound++;
if (iFound > 1) {
removeAdvice(adviceName, joinPoint, joinPoint.getPointcuts()[i]);
}