/** * Determine whether or not a redirect should be used to render the application view. * @param context the context * @return true or false */ protected boolean shouldRedirect(RequestContext context) { return context.getCurrentState() instanceof ViewState && (redirect || alwaysRedirectOnPause(context)); }