docs: private void setUpTemporaryUserSubject() throws Exception {
          temporarySubject = new Subject();
          temporarySubject.getPrivateCredentials().add(recreatedToken);
          UserRegistry ur = getUserRegistry();
          String securityName = ur.getUserSecurityName(AccessIdUtil.getUniqueId(accessId));
          securityName = getSecurityName(securityName, securityName); // Special handling for LDAP under here.
          setWSPrincipal(temporarySubject, securityName, accessId, WSPrincipal.AUTH_METHOD_TOKEN);
          setCredentials(temporarySubject, securityName, null);
          setOtherPrincipals(temporarySubject, securityName, accessId, WSPrincipal.AUTH_METHOD_TOKEN, null);
      }