code: @Override
      protected AbstractMvcView createMvcView(View view, RequestContext context) {
          final ExternalContext externalContext = context.getExternalContext();
          final Object nativeRequest = externalContext.getNativeRequest();
          if (nativeRequest instanceof PortletRequest) {
              return new PortletMvcView(view, context);
          }
  
          return new ServletMvcView(view, context);
      }
docs: /* (non-Javadoc)
  @see org.springframework.webflow.mvc.view.AbstractMvcViewFactory#createMvcView(org.springframework.web.servlet.View, org.springframework.webflow.execution.RequestContext)