code: public static Map<Node, List<String>> getConditionNodes(final Node node) {
          final Map<Node, List<String>> conditionalNodes = new HashMap<Node, List<String>>();
          getConditionNodes(node, conditionalNodes);
          return conditionalNodes;
      }
docs: Collects any nodes that have the "condition" attribute in the
  passed node or any of it's children nodes.
  
  @param node The node to collect condition elements from.
  @return A mapping of nodes to their conditions.