docs: public static String getInstallRoot() {
          return AccessController.doPrivileged(new PrivilegedAction<String>() {
              @Override
              public String run() {
                  String output = System.getProperty("wlp.install.dir");
                  if (output == null) {
                      output = System.getenv("WLP_INSTALL_DIR");
                  }
                  if (output == null) {
                      // if neither of these is set. use the location where the class is loaded.
                      URL url = CLASS_NAME.getProtectionDomain().getCodeSource().getLocation();
                      try {
                          output = new File(url.toString().substring("file:".length())).getParentFile().getParentFile().getCanonicalPath();
                      } catch (IOException e) {
                          // this condition should not happen, but if that's the case, use current directory.
                          output = ".";
                          if (logger.isLoggable(Level.FINE)) {
                              logger.fine("The install root was not detected. " + e.getMessage());
                          }
                      }
                  }
                  if (logger.isLoggable(Level.FINE)) {
                      logger.fine("The install root is " + output);
                  }
                  return output;
              }
          });
      }