code: @Override
  	public TaskBase getCurrentTask(ProcessInstance processInstance) {
  		if (processInstance == null) {
  			throw new NullPointerException("processInstance was null");
  		}
  		return getTask(processInstance.getProcessDefinitionName(),processInstance.getTaskId());
  	}
docs: /* (non-Javadoc)
  @see nz.co.senanque.workflow.WorkflowManager#getCurrentTask(nz.co.senanque.workflow.instances.ProcessInstance)