if (state.domGenerators == null) {
Document dataInput = readInputAsDOM4J(context, getInputByName(FOR_EACH_DATA_INPUT));
state.domGenerators = new ArrayList();
PooledXPathExpression expr = XPathCache.getXPathExpression(context,
new DocumentWrapper(dataInput, null, new Configuration()),
<BUG>select, namespaceContext);
try {</BUG>
for (Iterator i = expr.evaluate().iterator(); i.hasNext();) {
Node node = (Node) i.next();
if ( node.getNodeType() != org.dom4j.Node.ELEMENT_NODE )

if (state.domGenerators == null) {
InternalCacheKey internalKey = createInternalKey(context);
Object internalValidity = createInternalValidity(context);
updateStateWithDOMGeneratorsFromCache(context, state, internalKey, internalValidity);
if (state.domGenerators == null) {
Document dataInput = readInputAsDOM4J(context, getInputByName(FOR_EACH_DATA_INPUT));
state.domGenerators = new ArrayList();
PooledXPathExpression expr = XPathCache.getXPathExpression(context,
new DocumentWrapper(dataInput, null, new Configuration()),
select, namespaceContext, getLocationData());
try {
for (Iterator i = expr.evaluate().iterator(); i.hasNext();) {
Node node = (Node) i.next();
if ( node.getNodeType() != org.dom4j.Node.ELEMENT_NODE )
