protected boolean isExpandEmptyElements() {
        return format.isExpandEmptyElements();
    }
<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