legacy/messaging/src/main/java/org/jboss/as/messaging/MessagingXMLWriter.java
private static void writeFilter(final XMLExtendedStreamWriter writer, final ModelNode node) throws XMLStreamException {
        if (node.hasDefined(CommonAttributes.FILTER.getName())) {
            writer.writeEmptyElement(CommonAttributes.FILTER.getXmlName());
            writer.writeAttribute(CommonAttributes.STRING, node.get(CommonAttributes.FILTER.getName()).asString());
        }
    }
private static void writeFilter(final XMLExtendedStreamWriter writer, final ModelNode node) throws XMLStreamException {
        if (node.hasDefined(CommonAttributes.FILTER.getName())) {
            writer.writeEmptyElement(CommonAttributes.FILTER.getXmlName());
            writer.writeAttribute(CommonAttributes.STRING, node.get(CommonAttributes.FILTER.getName()).asString());
        }
    }
private static void writeFilter ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { if ( node . hasDefined ( CommonAttributes . FILTER . getName ( ) ) ) { writer . writeEmptyElement ( CommonAttributes . FILTER . getXmlName ( ) ) ; writer . writeAttribute ( CommonAttributes . STRING , node . get ( CommonAttributes . FILTER . getName ( ) ) . asString ( ) ) ; } }
TODO use a custom attribute marshaller
TODO use a custom attribute marshaller