code: private static String getAttribute(NamedNodeMap atts, String key) {
          Node node = atts.getNamedItem(key);
          return (node == null) ? null : node.getNodeValue();
      }
docs: Private Methods ---------------------------------------------------------