code: public static String getServletContextPath(
  			ProcessEngine processEngine, String processDefinitionId) {
  
  		return getServletContextPath(getProcessApplicationInfo(processEngine, processDefinitionId));
  	}
docs: Retrieve the servlet context path of a process definition from a known process engine.