EntitySaxReader reader = new EntitySaxReader(delegator);
long numberRead = reader.parse(entityXmlURL);
} else {
result.addFailure(this, new AssertionFailedError("Bad value [" + this.action + "] for action attribute of entity-xml element"));
}
<BUG>if (UtilValidate.isNotEmpty(errorMessages)) {
Iterator failureIterator = errorMessages.iterator();
while (failureIterator.hasNext()) {
String failureMessage = (String) failureIterator.next();
result.addFailure(this, new AssertionFailedError(failureMessage));
</BUG>
}

EntitySaxReader reader = new EntitySaxReader(delegator);
long numberRead = reader.parse(entityXmlURL);
} else {
result.addFailure(this, new AssertionFailedError("Bad value [" + this.action + "] for action attribute of entity-xml element"));
