code: private static XMLStreamException unexpectedAttribute(final XMLStreamReader reader, final int index) {
          return SecurityManagerLogger.ROOT_LOGGER.unexpectedAttribute(reader.getAttributeName(index), reader.getLocation());
      }
docs: Gets an exception reporting an unexpected XML attribute.
  
  @param reader a reference to the stream reader.
  @param index the attribute index.
  @return the constructed {@link javax.xml.stream.XMLStreamException}.