class ConditionDescriptorNodesParser {

    public List<ConditionDescriptor> parseNodesOfElement(final Document document, final Element element) {
        List<ConditionDescriptor> result = new ArrayList<>();
        NodeList conditionDescriptorNodes = element.getElementsByTagName(ConditionDescriptor.TAG_NAME);
        for (int i = 0; i < conditionDescriptorNodes.getLength(); i++) {
            ConditionDescriptor conditionDescriptor = conditionDescriptorParser.parseNode(conditionDescriptorNodes.item(i), document);
            result.add(conditionDescriptor);
        }
        return result;
    }

}