boolean collapsed = Boolean.valueOf(params.get(clientId + "_collapsed"));
LayoutUnit unit = getLayoutUnitByPosition(params.get(clientId + "_unit"));
Visibility visibility = collapsed ? Visibility.HIDDEN : Visibility.VISIBLE;
unit.setCollapsed(collapsed);
wrapperEvent = new ToggleEvent(unit, behaviorEvent.getBehavior(), visibility);
}
else if(eventName.equals("close")) {
LayoutUnit unit = getLayoutUnitByPosition(params.get(clientId + "_unit"));
unit.setVisible(false);