if (oldChannelId != null && !IUserLayout.ROOT_NODE_NAME.equals(oldChannelId)) {
//Tell the previously maximized channel it is going back to normal
if (logger.isDebugEnabled()) {
logger.debug("Sending window state event '" + PortalEvent.NORMAL + "' to '" + root + "'.");
}
channelManager.passPortalEvent(request, response, oldChannelId, PortalEvent.NORMAL);
}
}
else {
//Make sure that the focused channel isn't rendered minimized
themeStylesheetUserPreferences.setChannelAttributeValue(root, "minimized", "false");