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 ( ) ; }
Helper method to obtain process ID from process name .