docs: public static XMLStreamException duplicateAttribute(final XMLExtendedStreamReader reader, final String name) {
          final XMLStreamException ex = ControllerLogger.ROOT_LOGGER.duplicateAttribute(name, reader.getLocation());
  
          return new XMLStreamValidationException(ex.getMessage(),
                                                  ValidationError.from(ex, ErrorType.DUPLICATE_ATTRIBUTE)
                                                          .element(reader.getName())
                                                          .attribute(new QName(name)),
                                                  ex);
      }