code: public int getJvmPid() {
          int pid = -1;
          if (strPID !=null) {
              try {
                  pid = Integer.parseInt(strPID);
              }
              catch (NumberFormatException e) {/* */  }
          }
          return pid;
      }
docs: ===============================================================