if ( event.isAction() ) {
// This means we can only have ONE portlet event per request!
objectModel.put("portlet-event", event);
} else {
DynamicInformationProvider dynProv;
InformationProviderService ips;
PortletActionProvider pap;
ips = (InformationProviderService)this.portletContainerEnvironment.getContainerService(InformationProviderService.class);
dynProv = ips.getDynamicProvider(req);
pap = dynProv.getPortletActionProvider(event.getPortletWindow());
final PortletMode mode = event.getPortletMode();
if ( mode != null ) {
pap.changePortletMode(mode);
}