code: public static File getOutputDir(boolean isClient) {
  
          String outputDirLoc = null;
  
          // 1st check in environment variable is set.  This is the normal case
          // when the server is started from the command line.
          if (outputDir.get() == null) {
  
              try {
                  outputDirLoc = AccessController.doPrivileged(new java.security.PrivilegedExceptionAction<String>() {
                      @Override
                      public String run() throws Exception {
                          return System.getenv(BootstrapConstants.ENV_WLP_OUTPUT_DIR);
                      }
                  });
              } catch (Exception ex) {
              }
  
              //outputDirLoc = System.getenv(BootstrapConstants.ENV_WLP_OUTPUT_DIR);
              File resultDir = null;
              if (outputDirLoc != null) {
                  resultDir = new File(outputDirLoc);
              } else {
                  // PI20344: Check if the Java property is set, which is the normal case when
                  // the server is embedded; i.e. they didn't launch it from the command line.
                  outputDirLoc = System.getProperty(BootstrapConstants.ENV_WLP_OUTPUT_DIR);
                  if (outputDirLoc != null) {
                      resultDir = new File(outputDirLoc);
                  } else {
                      File userDir = Utils.getUserDir();
                      if (userDir != null) {
                          if (isClient) {
                              resultDir = new File(userDir, "clients");
                          } else {
                              resultDir = new File(userDir, "servers");
                          }
                      }
                  }
              }
              outputDir = StaticValue.mutateStaticValue(outputDir, new FileInitializer(resultDir));
          }
          return outputDir.get();
      }
docs: Returns directory containing server output directories. A server output
  directory has server's name as a name and located under this directory.
  
  @return instance of the output directory or 'null' if installation directory
  can't be determined.