public Map<URI,List<URI>> addSourceVolumeMirrors(){
  List<URI> blockMirrors=Lists.newArrayList();
  Map<URI,List<URI>> mirrorsMap=new HashMap<>();
  for (  URI volumeId : uris(volumeIds)) {
    List<URI> mirrors=getMirrors(volumeId);
    blockMirrors.addAll(mirrors);
    mirrorsMap.put(volumeId,mirrors);
  }
  if (!blockMirrors.isEmpty()) {
    BlockStorageUtils.addVolumesToConsistencyGroup(consistencyGroup,blockMirrors);
  }
  return mirrorsMap;
}

public Map < URI , List < URI > > addSourceVolumeMirrors ( ) { List < URI > blockMirrors = Lists . newArrayList ( ) ; Map < URI , List < URI > > mirrorsMap = new HashMap < > ( ) ; for ( URI volumeId : uris ( volumeIds ) ) { List < URI > mirrors = getMirrors ( volumeId ) ; blockMirrors . addAll ( mirrors ) ; mirrorsMap . put ( volumeId , mirrors ) ; } if ( ! blockMirrors . isEmpty ( ) ) { BlockStorageUtils . addVolumesToConsistencyGroup ( consistencyGroup , blockMirrors ) ; } return mirrorsMap ; }
adds all source volume mirrors to the consistency group
