throw new XPathExpressionException("Within <navigation-case>, must have exactly one <to-view-id>");
}
String toViewId = toViewIdList.item(0).getNodeValue().trim();
NavigationCaseBuilder ncb = flowBuilder.navigationCase();
ncb.fromViewId(fromViewId).toViewId(toViewId);
{
NodeList fromOutcomeList = (NodeList)
xpath.evaluate(".//ns1:from-outcome/text()", navCase, XPathConstants.NODESET);
if (null != fromOutcomeList && 1 < fromOutcomeList.getLength()) {