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