private void writeElement(DissectableDocument document,
DissectableElement element,
String open, String close)
throws DissectionException {
ElementAnnotation annotation
= (ElementAnnotation) document.getAnnotation(element);
String state = getNodeState(annotation);
indent();
writer.print(state);