code: @Override
  	public TaskBase getTask(ProcessDefinition pd, long taskId) {
  		for (TaskBase task: pd.getTasks()) {
  			if (task.getTaskId() == taskId) {
  				return task;
  			}
  		}
  		return null;
  	}
docs: /* (non-Javadoc)
  @see nz.co.senanque.workflow.WorkflowManager#getTask(nz.co.senanque.process.instances.ProcessDefinition, long)