docs: private void setUpTemporarySubject() throws Exception {
          temporarySubject = new Subject();
          String accessId = AccessIdUtil.createAccessId(AccessIdUtil.TYPE_USER,
                                                        userRegistry.getRealm(),
                                                        userRegistry.getUniqueUserId(urAuthenticatedId));
          setWSPrincipal(temporarySubject, username, accessId, WSPrincipal.AUTH_METHOD_PASSWORD);
          setCredentials(temporarySubject, username, urAuthenticatedId);
          setOtherPrincipals(temporarySubject, username, accessId, WSPrincipal.AUTH_METHOD_PASSWORD, null);
      }