context.setVariable(variableName, value);
} else {
Node node = XMLUtils.findNodeByName(doc, pathExpression);
if (node == null) {
throw new UnknownElementException("No element found for expression" + pathExpression);
}
if (node.getNodeType() == Node.ELEMENT_NODE) {
if (node.getFirstChild() != null) {
context.setVariable((String)xPathExpressions.get(pathExpression), node.getFirstChild().getNodeValue());