docs: public static boolean inAttributes(String attrName, Attributes attrs) {
          for (NamingEnumeration<String> neu = attrs.getIDs(); neu.hasMoreElements();) {
              String attrId = neu.nextElement();
              if (attrId.equalsIgnoreCase(attrName)) {
                  return true;
              }
          }
          return false;
      }