stringBuilder.append(TREE_END);
log(stringBuilder.toString());
}
public void beginVisit(final IRBTNode node) throws RBTException {
final ObjectIdentityKey item = new ObjectIdentityKey(node);
if (visitStack.contains(item)) {
stringBuilder.append("--> ");
stringBuilder.append(node.toString());
stringBuilder.append('\n');
throw new RBTException("cycle in tree");