add util method for getting a java process pid and killing a process by pid