if (!context.isExpanded() || !context.isHasChildren()) {
getUtils().writeAttribute(writer, "style", "display: none;");
} else {
if (tree.isShowConnectingLines()) {
TreeRowKey floatingKey = getFloatingKey();
//need the expression only for AJAX update root
if (floatingKey != null && floatingKey.equals(context.getRowKey())) {
String expression = "background-image:expression(this.nextSibling ? '' : 'none')";
getUtils().writeAttribute(writer, "style", expression);
}
}
}