code: protected void createDefaultEndStates(final Flow flow) {
          createRedirectUnauthorizedServiceUrlEndState(flow);
          createServiceErrorEndState(flow);
          createRedirectEndState(flow);
          createPostEndState(flow);
          createInjectHeadersActionState(flow);
          createGenericLoginSuccessEndState(flow);
          createServiceWarningViewState(flow);
          createEndWebflowEndState(flow);
      }
docs: Create default global exception handlers.
  
  @param flow the flow