docs: @SuppressWarnings({ "unchecked" })
      public static <T> T[] readArrayAttributeElement(final XMLExtendedStreamReader reader, final String attributeName,
              final Class<T> type) throws XMLStreamException {
          final List<T> list = readListAttributeElement(reader, attributeName, type);
          return list.toArray((T[]) Array.newInstance(type, list.size()));
      }