}
for (Iterator it2 = pm.elementIterator(); it2.hasNext();) {
Element nestedAdviceElement = (Element)it2.next();
if (nestedAdviceElement.getName().trim().equals("index-ref")) {
IndexRefDefinition indexDef = new IndexRefDefinition();
indexDef.setName(nestedAdviceElement.attributeValue("name"));
pmDef.addIndexRef(indexDef);
}
else if (nestedAdviceElement.getName().trim().equals("param")) {
ParameterDefinition paramDef = new ParameterDefinition();
paramDef.setName(nestedAdviceElement.attributeValue("name"));