public Printer printChildren(Node node) {
StringBuilder localSB = new StringBuilder();
List<Node> children = node.getChildren();
for (int i = 0, childrenSize = children.size(); i < childrenSize; i++) {
Node child = children.get(i);
if (child instanceof TextNode) {
localSB.append(child.getText());
} else {
if (localSB.length() > 0) {
printWithAbbreviations(localSB.toString());
localSB.setLength(0);
}
child.print(this);
}
}
if (localSB.length() > 0) printWithAbbreviations(localSB.toString());
return this;
}