writer.endNode();
}
private void startNode(String name, HierarchicalStreamWriter writer) {
if (writer instanceof ExtendedHierarchicalStreamWriter) {
ExtendedHierarchicalStreamWriter extendedWriter = (ExtendedHierarchicalStreamWriter) writer;
extendedWriter.startNode(name, String.class);
} else {
writer.startNode(name);
}
}