code: public static void removeCurrentAuthentication() {
          RequestContext context = RequestContext.getCurrent();
          if (context != null) {
              removeAuthentication(context.getRequest());
          }
      }
docs: Removes the authentication attribute from the current request.