Acceptor acceptor = null;
if (acceptorElement.getName().equals("and")) {
// and is just a wrapper of the AndAcceptor
AndAcceptor andAcceptor = new AndAcceptor();
Iterator acceptorIterator = acceptorElement.elementIterator();
while (acceptorIterator.hasNext()) {
Acceptor inner = buildAcceptor((Element) acceptorIterator.next());
andAcceptor.addAcceptor(inner);
}
acceptor = andAcceptor;
} else if (acceptorElement.getName().equals("or")) {