if (1 < fromOutcomeList.getLength()) {
throw new XPathExpressionException("Within <case> only one <from-outcome> child is allowed");
}
String fromOutcomeStr = fromOutcomeList.item(0).getNodeValue().trim();
switchBuilder.switchCase().condition(ifStr).fromOutcome(fromOutcomeStr);
}
}
NodeList defaultOutcomeList = (NodeList)
xpath.evaluate(".//ns1:default-outcome/text()", switchNode, XPathConstants.NODESET);