int id = ((Number)xpath.evaluate("id", pointNode, XPathConstants.NUMBER)).intValue();
double x = ((Number)xpath.evaluate("x", pointNode, XPathConstants.NUMBER)).doubleValue();
double y = ((Number)xpath.evaluate("y", pointNode, XPathConstants.NUMBER)).doubleValue();
double z = ((Number)xpath.evaluate("z", pointNode, XPathConstants.NUMBER)).doubleValue();
logger.trace("Point {}: ID={}, x={}, y={}, z={}", pointsIndex, id, x, y, z);
Point point = new Point(x, y, z);
pointMap.put(id, point);
logger.debug("Added Point[{}]: {}", id, point);
}
} catch (XPathExpressionException e) {
logger.error("Wrong XPath expression:", e);