code: @SuppressWarnings({"unchecked", "WeakerAccess"})
      public static <T> List<T> readListAttributeElement(final XMLExtendedStreamReader reader, final String attributeName,
              final Class<T> type) throws XMLStreamException {
          requireSingleAttribute(reader, attributeName);
          // todo: fix this when this method signature is corrected
          final List<T> value = (List<T>) reader.getListAttributeValue(0, type);
          requireNoContent(reader);
          return value;
      }
docs: Read an element which contains only a single list attribute of a given
  type.
  @param reader the reader
  @param attributeName the attribute name, usually "value"
  @param type the value type class
  @param <T> the value type
  @return the value list
  @throws javax.xml.stream.XMLStreamException if an error occurs or if the
  element does not contain the specified attribute, contains other
  attributes, or contains child elements.