boolean nodeExpanded = Boolean.valueOf(nodeExpandedValue.toString()).booleanValue();
if (tree.isExpanded() ^ nodeExpanded) {
if (nodeExpanded) {
new ExpandNodeCommandEvent(tree, key).queue();
} else {
new CollapseNodeCommandEvent(tree, key).queue();
}
if (Boolean.valueOf((String) requestMap.get(id + AJAX_EXPANDED_SUFFIX)).booleanValue()) {
new AjaxExpandedEvent(node).queue();
new AjaxExpandedEvent(tree).queue();