docs: @Deprecated
      public static @Nonnull SecurityContext impersonate(@Nonnull Authentication auth) {
          SecurityContext old = SecurityContextHolder.getContext();
          SecurityContextHolder.setContext(new NonSerializableSecurityContext(auth));
          return old;
      }