code: public static boolean nameEquals(
              final XMLStreamReader reader,
              final String namespace,
              final String localName) {
          if (!reader.getLocalName().equals(localName)) {
              return false;
          }
          if (namespace == null) {
              return true;
          }
          final String namespaceURI = reader.getNamespaceURI();
          if (namespaceURI == null) {
              return StringUtils.isEmpty(namespace);
          }
          return namespaceURI.equals(StringUtils.defaultString(namespace));
      }
docs: Method nameEquals.
  
  @param reader
  XMLStreamReader
  @param namespace
  String
  @param localName
  String
  @return boolean