docs: public ReturnCode status(boolean starting) {
          // Use initialized bootstrap configuration to find the server lock file.
          ServerLock serverLock = ServerLock.createTestLock(bootProps);
          ReturnCode rc = ReturnCode.OK;
  
          // The lock file may have been (erroneously) deleted: this can happen on linux
          boolean lockExists = serverLock.lockFileExists();
  
          if (lockExists) {
              // If the lock exists, check quickly to see if the process is holding it.
              if (serverLock.testServerRunning()) {
                  rc = ReturnCode.OK;
              } else {
                  // nope: lock not held, we're not running
                  rc = ReturnCode.REDUNDANT_ACTION_STATUS;
              }
          } else {
              // no lock file: we assume the server is not running.
              rc = ReturnCode.REDUNDANT_ACTION_STATUS;
          }
  
          if (rc == ReturnCode.OK) {
              String pid = getPID();
              if (pid == null) {
                  if (starting) {
                      System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("info.serverIsAlreadyRunning"), serverName));
                  } else {
                      System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("info.serverIsRunning"), serverName));
                  }
              } else {
                  if (starting) {
                      System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("info.serverIsAlreadyRunningWithPID"), serverName, pid));
                  } else {
                      System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("info.serverIsRunningWithPID"), serverName, pid));
                  }
              }
          } else if (rc == ReturnCode.REDUNDANT_ACTION_STATUS) {
              if (!starting) {
                  System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("info.serverNotRunning"), serverName));
              }
          } else if (rc == ReturnCode.SERVER_NOT_EXIST_STATUS) {
              System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("info.serverNotExist"), serverName));
          } else {
              if (!starting) {
                  System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("info.serverStatusException"), serverName));
              } else {
                  if (rc == ReturnCode.SERVER_UNKNOWN_STATUS) {
                      String pid = getPID();
                      String pidFile = launchArgs.getOption(INTERNAL_PID_FILE);
                      if (pid == null || pidFile == null) {
                          System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("info.serverStartException"), serverName));
                      } else {
                          System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("info.serverStartUnreachable"), serverName, pidFile, pid));
                      }
                  } else {
                      System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("info.serverStartException"), serverName));
                  }
              }
          }
  
          return rc;
      }