protected void writeEmptyElementClose(String qualifiedName) throws IOException {
        // Simply close up
        if (! format.isExpandEmptyElements()) {
            writer.write("/>");
        } else {
            writer.write("></");
            writer.write(qualifiedName);
            writer.write(">");
        }
    }
<p>
This will write the declaration to the given Writer.
  Assumes XML version 1.0 since we don't directly know.
</p>
@throws IOException if the declaration could not be written
xmppserver/src/main/java/org/jivesoftware/util/XMLWriter.java