public Map<URI,List<URI>> addSourceVolumeFullCopies(){
  List<URI> fullCopies=Lists.newArrayList();
  Map<URI,List<URI>> fullCopiesMap=new HashMap<>();
  for (  URI volumeId : uris(volumeIds)) {
    List<URI> volumeFullCopies=getFullCopies(volumeId);
    fullCopies.addAll(volumeFullCopies);
    fullCopiesMap.put(volumeId,volumeFullCopies);
  }
  if (!fullCopies.isEmpty()) {
    BlockStorageUtils.addVolumesToConsistencyGroup(consistencyGroup,fullCopies);
  }
  return fullCopiesMap;
}

public Map < URI , List < URI > > addSourceVolumeFullCopies ( ) { List < URI > fullCopies = Lists . newArrayList ( ) ; Map < URI , List < URI > > fullCopiesMap = new HashMap < > ( ) ; for ( URI volumeId : uris ( volumeIds ) ) { List < URI > volumeFullCopies = getFullCopies ( volumeId ) ; fullCopies . addAll ( volumeFullCopies ) ; fullCopiesMap . put ( volumeId , volumeFullCopies ) ; } if ( ! fullCopies . isEmpty ( ) ) { BlockStorageUtils . addVolumesToConsistencyGroup ( consistencyGroup , fullCopies ) ; } return fullCopiesMap ; }
adds all source volumes ' full copies to the consistency group
