}
private List<Map<String, String>> findElementsByXpath(String xpath, Node from)
throws XPathExpressionException {
XPathExpression expr = xpath2.compile(xpath);
DOMNodeList elements;
elements = (DOMNodeList) expr.evaluate(document, XPathConstants.NODESET);
List<Map<String, String>> res = new ArrayList<Map<String, String>>();
for (int i = 0; i < elements.getLength(); i++) {
Element el = (Element) elements.item(i);
String reference = el.getAttribute("ref");
String type = el.getNodeName();
res.add(ImmutableMap.of("ELEMENT", reference, "type", type));
}