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