DocumentValue documentValue = new DocumentValue((StreamableValue)content);
Map instructionMap = ((MapValue)instructions).getMap();
for ( Iterator j = instructionMap.entrySet().iterator(); j.hasNext(); ) {
Map.Entry entry = (Map.Entry)j.next();
String key = (String) entry.getKey();
XPath xPath = XPath.newInstance(entry.getValue().toString());
List nodeList = xPath.selectNodes(documentValue.getRootElement());
resultMap.put(key, XPathQuery.createValueFromNodeList(nodeList));
}
}
if ( includeContent ) {
resultMap.put(CONTENT_ENTRY, content);