private void createTaskForVolume(Volume volume,VirtualPoolCapabilityValuesWrapper capabilities,TaskList taskList,String task){
  ResourceOperationTypeEnum type=ResourceOperationTypeEnum.CREATE_BLOCK_VOLUME;
  if (capabilities.getAddJournalCapacity()) {
    type=ResourceOperationTypeEnum.ADD_JOURNAL_VOLUME;
  }
  createTaskForVolume(volume,type,taskList,task);
}

private void createTaskForVolume ( Volume volume , VirtualPoolCapabilityValuesWrapper capabilities , TaskList taskList , String task ) { ResourceOperationTypeEnum type = ResourceOperationTypeEnum . CREATE_BLOCK_VOLUME ; if ( capabilities . getAddJournalCapacity ( ) ) { type = ResourceOperationTypeEnum . ADD_JOURNAL_VOLUME ; } createTaskForVolume ( volume , type , taskList , task ) ; }
used to create a task and add it to the tasklist
