code: public Long getProcessId(String procname) throws Exception {
          Process proc = ProcessCache.getProcess(procname, 0);
          if (proc == null)
              throw new DataAccessException(0, "Cannot find process with name "
                      + procname + ", version 0");
  
          return proc.getId();
      }
docs: Helper method to obtain process ID from process name.
  
  @param procname
  @return process ID of the latest version of the process with the given
  name
  @throws Exception