List<EventElement> events = new LinkedList<EventElement>();
List list = actEl.selectNodes("TriggerEvents/event");
Iterator iter=list.iterator();
while(iter.hasNext()){
Element el = (Element)iter.next();
EventElement event = new EventElement();
event.setEventType(el.attributeValue("eventType"));
event.setAction(el.attributeValue("action"));
event.setInvokePattern(el.attributeValue("invokePattern"));
event.setTransactionType(el.attributeValue("transactionType"));
event.setExceptionStrategy(el.attributeValue("exceptionStrategy"));
events.add(event);
}
return events;
}