private void populateTaskList(Volume source,Map<BlockMirror,Volume> groupMirrorSourceMap,TaskList taskList,String taskId,ResourceOperationTypeEnum operationType){
  Set<URI> groupSet=new HashSet<URI>();
  addTask(taskList,source,taskId,operationType);
  for (  Entry<BlockMirror,Volume> entry : groupMirrorSourceMap.entrySet()) {
    BlockMirror mirror=entry.getKey();
    Volume mirrorSource=entry.getValue();
    if (source.isInCG() && null != taskList.getTaskList()) {
      groupSet.add(mirrorSource.getConsistencyGroup());
    }
  }
  List<BlockConsistencyGroup> groups=_dbClient.queryObject(BlockConsistencyGroup.class,groupSet);
  for (  BlockConsistencyGroup group : groups) {
    addTask(taskList,group,taskId,operationType);
  }
}

private void populateTaskList ( Volume source , Map < BlockMirror , Volume > groupMirrorSourceMap , TaskList taskList , String taskId , ResourceOperationTypeEnum operationType ) { Set < URI > groupSet = new HashSet < URI > ( ) ; addTask ( taskList , source , taskId , operationType ) ; for ( Entry < BlockMirror , Volume > entry : groupMirrorSourceMap . entrySet ( ) ) { BlockMirror mirror = entry . getKey ( ) ; Volume mirrorSource = entry . getValue ( ) ; if ( source . isInCG ( ) && null != taskList . getTaskList ( ) ) { groupSet . add ( mirrorSource . getConsistencyGroup ( ) ) ; } } List < BlockConsistencyGroup > groups = _dbClient . queryObject ( BlockConsistencyGroup . class , groupSet ) ; for ( BlockConsistencyGroup group : groups ) { addTask ( taskList , group , taskId , operationType ) ; } }
populate the given tasklist with tasks .
