code: public static GlobalApp getGlobalApp( HttpServletRequest request )
      {
          SharedFlowController sf = getSharedFlow( InternalConstants.GLOBALAPP_CLASSNAME, request );
          return sf instanceof GlobalApp ? ( GlobalApp ) sf : null;
      }
docs: Get the current {@link GlobalApp} instance.
  
  @deprecated Use {@link #getSharedFlow} instead.
  @param request the current HttpServletRequest.
  @return the current {@link GlobalApp} from the user session, or <code>null</code> if none
  exists.