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"));
paramDef.setValue(nestedAdviceElement.getText());
pmDef.addParameter(paramDef);
}
}
definition.addPersistenceManager(pmDef);