* @throws EvaluatorException if the configuration is invalid
*/
public void init(OMElement conditions) throws EvaluatorException {
Iterator it = conditions.getChildElements();
ConditionFactory rf = new ConditionFactory();
List<Condition> conditionList = new ArrayList<Condition>();
while (it.hasNext()) {
OMElement conditionElement = (OMElement) it.next();
if (!conditionElement.getLocalName().equals(EvaluatorConstants.CONDITION)) {
handleException("Only " + EvaluatorConstants.CONDITION + " elements expected");
}
Condition r = null;
try {
r = rf.createCondition(conditionElement);
} catch (EvaluatorException e) {
handleException("Error creating " +
EvaluatorConstants.CONDITION + ": " + e.getMessage());
}