if (hrefDocumentInfo == null)
hrefDocumentInfo = readCacheInputAsTinyTree(context, AbstractChooseProcessor.CHOOSE_DATA_INPUT);
PooledXPathExpression expr = null;
final Map namespaces = (Map) branchNamespaces.get(branchIndex);
try {
<BUG>expr = XPathCache.getXPathExpression(context, hrefDocumentInfo, "boolean(" + condition + ")", namespaces);
</BUG>
if( ((Boolean)expr.evaluateSingle()).booleanValue()) {
selectedBranch = branchIndex;
break;

if (hrefDocumentInfo == null)
hrefDocumentInfo = readCacheInputAsTinyTree(context, AbstractChooseProcessor.CHOOSE_DATA_INPUT);
PooledXPathExpression expr = null;
final Map namespaces = (Map) branchNamespaces.get(branchIndex);
try {
expr = XPathCache.getXPathExpression(context, hrefDocumentInfo, "boolean(" + condition + ")", namespaces, getLocationData());
if( ((Boolean)expr.evaluateSingle()).booleanValue()) {
selectedBranch = branchIndex;
break;
