if ( mode != null ) {
pap.changePortletMode(mode);
}
final WindowState state = event.getWindowState();
if ( state != null ) {
pap.changePortletWindowState(state);
}
if ( event.isAction() ) {
// This means we can only have ONE portlet event per request!
objectModel.put("portlet-event", event);
} else {