public void write(Attribute attribute) throws IOException {
        writeAttribute(attribute);

        if ( autoFlush ) {
            flush();
        }
    }
Writes the given {@link org.dom4j.Attribute}.

@param attribute <code>Attribute</code> to output.
@throws IOException if the attribute could not be written
xmppserver/src/main/java/org/jivesoftware/util/XMLWriter.java