@Override
  public TaskDispatcher resolve(Task aTask) {
    if(aTask.getType().equals("subflow")) {
      return this;
    }
    return null;
  }
a {@link TaskDispatcher} implementation which handles the 'subflow' 
task type. Subflows are essentially isolated job instances started 
by the parent 'subflow' task which is the owner of the sub-flow. 

@author Arik Cohen
@since Sep 06, 2018
src/main/java/com/creactiviti/piper/core/task/SubflowTaskDispatcher.java