Object nodeExpandedValue = requestMap.get(nodeExpandedId);
if (nodeExpandedValue != null) {
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()) {