code: private Priority extractPriorityAttributeFromNode(Node node) {
          Node priority = node.getAttributes().getNamedItem("priority");
          return priority == null ? Priority.NORMAL : Priority.valueOf(priority.getTextContent().toUpperCase());
      }
docs: Gets the priority String from the {@link Node} representing a single rule element in the XML file.
  
  @param node {@link Node} that is can optionally contain an attribute <code>priority</code>
  @return {@link Priority} value according to the value of the attribute; defaults to {@link Priority#NORMAL}