Buggy code:
public class NewMessagingSubsystemParser implements XMLStreamConstants , XMLElementReader < List < ModelNode > > , XMLElementWriter < SubsystemMarshallingContext > { private static final NewMessagingSubsystemParser INSTANCE = new NewMessagingSubsystemParser ( ) ; public static NewMessagingSubsystemParser getInstance ( ) { } private NewMessagingSubsystemParser ( ) { } @ Override public void readElement ( final XMLExtendedStreamReader reader , final List < ModelNode > list ) throws XMLStreamException { } static ModelNode processAcceptors ( XMLExtendedStreamReader reader ) throws XMLStreamException { } static ModelNode parseQueues ( XMLExtendedStreamReader reader ) throws XMLStreamException { } static void parseQueue ( final XMLExtendedStreamReader reader , final ModelNode queue ) throws XMLStreamException { } static ModelNode processSecuritySettings ( XMLExtendedStreamReader reader ) throws XMLStreamException { } static void parseSecurityRoles ( final XMLExtendedStreamReader reader , final ModelNode node ) throws XMLStreamException { } static ModelNode processConnectors ( XMLExtendedStreamReader reader ) throws XMLStreamException { } static ModelNode processAddressSettings ( XMLExtendedStreamReader reader ) throws XMLStreamException { } static ModelNode parseAddressSettings ( final XMLExtendedStreamReader reader ) throws XMLStreamException { } static void parseTransportConfigurationParams ( final XMLExtendedStreamReader reader , final ModelNode transportConfig , final boolean generic ) throws XMLStreamException { } static ModelNode parseDirectory ( XMLExtendedStreamReader reader ) throws XMLStreamException { } static void unhandledElement ( XMLExtendedStreamReader reader , Element element ) throws XMLStreamException { } static void handleElementText ( final XMLExtendedStreamReader reader , final Element element , final ModelNode node ) throws XMLStreamException { } @ Override public void writeContent ( final XMLExtendedStreamWriter writer , final SubsystemMarshallingContext context ) throws XMLStreamException { } private void writeAcceptors ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeConnectors ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeAcceptorAndConnectorContent ( final XMLExtendedStreamWriter writer , final Property property ) throws XMLStreamException { writer . writeAttribute ( NAME . getLocalName ( ) , property . getName ( ) ) ; final ModelNode value = property . getValue ( ) ; if ( has ( value , CommonAttributes . SOCKET_BINDING ) ) { writeAttribute ( writer , SOCKET_BINDING , value . get ( CommonAttributes . SOCKET_BINDING ) ) ; } if ( has ( value , CommonAttributes . SERVER_ID ) ) { writeAttribute ( writer , SERVER_ID , value . get ( CommonAttributes . SERVER_ID ) ) ; } if ( has ( value , CommonAttributes . FACTORY_CLASS ) ) { NewMessagingSubsystemParser . writeSimpleElement ( writer , FACTORY_CLASS , value ) ; } if ( has ( value , CommonAttributes . PARAM ) ) { for ( final Property parameter : value . get ( CommonAttributes . PARAM ) . asPropertyList ( ) ) { writer . writeStartElement ( PARAM . getLocalName ( ) ) ; writer . writeAttribute ( KEY . getLocalName ( ) , parameter . getName ( ) ) ; <START_BUG> writeAttribute ( writer , NAME , parameter . getValue ( ) ) ; <END_BUG> writer . writeEndElement ( ) ; } } } private void writeSecuritySettings ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writePermission ( final XMLExtendedStreamWriter writer , final String type , final List < String > roles ) throws XMLStreamException { } private void writeAddressSettings ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeQueues ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } static void writeSimpleElement ( final XMLExtendedStreamWriter writer , final Element element , final ModelNode node ) throws XMLStreamException { } static void writeDirectory ( final XMLExtendedStreamWriter writer , final Element element , final ModelNode node ) throws XMLStreamException { } private boolean has ( ModelNode node , String name ) { } private void writeAttribute ( final XMLExtendedStreamWriter writer , final Attribute attr , final ModelNode value ) throws XMLStreamException { } }

Fix:
writeAttribute ( writer , VALUE , parameter . getValue ( ) ) ;