private void closeOpeningTag(final boolean newLine) throws IOException {
        if (!this.closed) {
            writeAttributes();
            this.closed = true;
            this.writer.write(">");
            if (newLine)
                this.writer.write("\n");
        }
    }