question: LoginProcess startLoginProcess ( LoginProcess loginProcess ) throws AuthLoginException { LoginConfiguration loginConfiguration = loginProcess . getLoginConfiguration ( ) ; HttpServletRequest request = loginConfiguration . getHttpRequest ( ) ; AuthIndexType indexType = loginConfiguration . getIndexType ( ) ; String indexValue = loginConfiguration . getIndexValue ( ) ; AuthenticationContext authContext = loginProcess . getAuthContext ( ) ; if ( indexType != null && indexType . equals ( AuthIndexType . RESOURCE ) ) { Map < String , Set < String > > envMap = coreServicesWrapper . getEnvMap ( request ) ; if ( StringUtils . isBlank ( indexValue ) || Boolean . parseBoolean ( indexValue ) ) { indexValue = coreServicesWrapper . getResourceURL ( request ) ; } authContext . login ( indexType . getIndexType ( ) , indexValue , envMap , null ) ; } else if ( indexType != null && indexType . getIndexType ( ) != null ) { authContext . login ( indexType . getIndexType ( ) , indexValue ) ; } else { authContext . login ( ) ; } try { HttpServletResponse response = loginConfiguration . getHttpResponse ( ) ; coreServicesWrapper . setLbCookie ( authContext . getAuthContext ( ) , request , response ) ; } catch ( AuthException e ) { throw new AuthLoginException ( e ) ; } return loginProcess ; }
target:  Starts the login process by calling the appropriate login() method on the underlying AuthContextLocal.