protected List<Document> getChildren(Node node) { List<Node> nodes = session.getChildren(node, null, false); List<Document> children = new ArrayList<Document>(nodes.size()); for (Node n : nodes) { try { children.add(newDocument(n)); } catch (NoSuchDocumentException e) { // ignore error retrieving one of the children continue; } } return children; }
protected List<Node> getComplexList(Node node, String name) { List<Node> nodes = session.getChildren(node, name, true); return nodes; }