code: @SneakyThrows
      protected View getResultingView(final IndirectClient<Credentials, CommonProfile> client, final J2EContext webContext, final Ticket ticket) {
          val action = client.getRedirectAction(webContext);
          if (RedirectAction.RedirectType.SUCCESS.equals(action.getType())) {
              return new DynamicHtmlView(action.getContent());
          }
          val builder = new URIBuilder(action.getLocation());
          val url = builder.toString();
          LOGGER.debug("Redirecting client [{}] to [{}] based on identifier [{}]", client.getName(), url, ticket.getId());
          return new RedirectView(url);
      }
docs: Gets resulting view.
  
  @param client     the client
  @param webContext the web context
  @param ticket     the ticket
  @return the resulting view