PortletResponse portletResponse = bridgeContext.getPortletResponse();
if (portletResponse instanceof StateAwareResponse) {
BridgeActionURL bridgeActionURL = bridgeContext.encodeActionURL(toViewId);
try {
BridgeNavigationCase bridgeNavigationCase = new BridgeNavigationCaseImpl(navigationCase);
String portletMode = bridgeNavigationCase.getPortletMode();