batch-jberet/src/main/java/org/wildfly/extension/batch/jberet/AttributeParsers.java
static String readNameAttribute(final XMLExtendedStreamReader reader) throws XMLStreamException {
        return readRequiredAttributes(reader, EnumSet.of(Attribute.NAME)).get(Attribute.NAME);
    }
static String readNameAttribute(final XMLExtendedStreamReader reader) throws XMLStreamException {
        return readRequiredAttributes(reader, EnumSet.of(Attribute.NAME)).get(Attribute.NAME);
    }
Reads a {@code name} attribute on an element.

@param reader the reader used to read the attribute with

@return the name attribute or {@code null} if the name attribute was not defined

@throws XMLStreamException if an XML processing error occurs