if (extContext == null) { throw new ExternalAuthenticationException("No ExternalAuthenticationContext found"); } else if (extContext.getFlowExecutionUrl() == null) { throw new ExternalAuthenticationException("No flow execution URL found to return control"); response.sendRedirect(extContext.getFlowExecutionUrl());