code: public String getName() {
          if (name == null && securityIdentity != null) {
              name = securityIdentity.getPrincipal().getName();
          }
  
          return name;
      }
docs: Obtain the name of the caller, most likely a user but could also be a remote process.
  
  @return The name of the caller.