if (this.children.size() == 0 && this.text == null) { writer.write("/>"); } else { writer.write('>'); }
writer.write('>');
    protected void writeOpenTag(Writer writer, String indent) throws IOException {        writer.write(indent);                if (name != null) {            writer.write('<');            writer.write(name);            for (final Entry<String, String> attributeEntry : attributes.entrySet()) {            	final String attributeName = attributeEntry.getKey();            	final String attributeValue = attributeEntry.getValue();                if (attributeValue != null) {                    writer.write(' ');                    writer.write(attributeName);                    writer.write("=\"");                    writer.write(attributeValue);                    writer.write('"');                }            }                        if (this.children.size() == 0 && this.text == null) {                writer.write("/>");            }            else {                writer.write('>');            }        }                if (this.text != null) {            writer.write(this.text);        }            }