docs: @Override
      public String getServerID() {
          if (serverID == null) {
              String serverName = null;
              String serverHostName = null;
              String serverUserDir = null;
  
              serverName = AccessController.doPrivileged(new PrivilegedAction<String>() {
                  @Override
                  public String run() {
                      return variableRegistryServiceRef.getService().resolveString(ENV_VAR_CONTAINERNAME);
                  }
              });
  
              if (ENV_VAR_CONTAINERNAME.equals(serverName)) {
                  serverName = AccessController.doPrivileged(new PrivilegedAction<String>() {
                      @Override
                      public String run() {
                          return variableRegistryServiceRef.getService().resolveString(VAR_WLPSERVERNAME);
                      }
                  });
  
              }
              // None of the variables resolved, set the server name back to an empty string.
              if (VAR_WLPSERVERNAME.equals(serverName)) {
                  serverName = "";
              }
  
              serverUserDir = AccessController.doPrivileged(new PrivilegedAction<String>() {
                  @Override
                  public String run() {
                      return variableRegistryServiceRef.getService().resolveString(VAR_WLPUSERDIR);
                  }
              });
  
              if (VAR_WLPUSERDIR.equals(serverUserDir)) {
                  serverUserDir = "";
              }
  
              serverHostName = AccessController.doPrivileged(new PrivilegedAction<String>() {
                  @Override
                  public String run() {
                      return variableRegistryServiceRef.getService().resolveString(ENV_VAR_CONTAINERHOST);
                  }
              });
  
              if (ENV_VAR_CONTAINERHOST.equals(serverHostName)) {
                  // env var CONTAINER_HOST did not resolve
  
                  serverHostName = AccessController.doPrivileged(new PrivilegedAction<String>() {
                      @Override
                      public String run() {
                          return variableRegistryServiceRef.getService().resolveString(VAR_DEFAULTHOSTNAME);
                      }
                  });
  
                  // defaultHostName variable did not resolve or has resolved to "localhost"
                  if (VAR_DEFAULTHOSTNAME.equals(serverHostName) || serverHostName.equals("localhost")) {
                      try {
                          serverHostName = AccessController.doPrivileged(new PrivilegedExceptionAction<String>() {
                              @Override
                              public String run() throws UnknownHostException {
                                  return InetAddress.getLocalHost().getCanonicalHostName();
                              }
                          });
  
                      } catch (PrivilegedActionException pae) {
                          serverHostName = "";
                      }
                  }
              }
              serverID = AUDIT_SERVER_ID_PREFIX + serverHostName +
                         AUDIT_SERVER_ID_SEPARATOR + serverUserDir +
                         AUDIT_SERVER_ID_SEPARATOR + serverName;
          }
          return serverID;
      }