NodeInfo optElement = getChildElement(testCase, optimizationNT);
if (optElement != null) {
String explain = optElement.getAttributeValue(explainAtt);
if ("true".equals(explain) || "1".equals(explain)) {
ExpressionPresenter presenter = new ExpressionPresenter(saConfig);
xqe.explain(presenter);
presenter.close();
}
String assertion = optElement.getAttributeValue(assertAtt);
if (assertion != null) {
TinyBuilder builder = new TinyBuilder();
builder.setPipelineConfiguration(saConfig.makePipelineConfiguration());
ExpressionPresenter presenter = new ExpressionPresenter(saConfig, builder);
xqe.explain(presenter);
presenter.close();
NodeInfo expressionTree = builder.getCurrentRoot();
XPathEvaluator xpe = new XPathEvaluator(saConfig);
XPathExpression exp = xpe.createExpression(assertion);
try {
Boolean bv = (Boolean)exp.evaluateSingle(expressionTree);