private Map<String,Volume> groupVolumesByReplicationGroup(List<Volume> volumeList){
  Map<String,Volume> repGroupToVolumeMap=new HashMap<String,Volume>();
  for (  Volume volume : volumeList) {
    String repGroupName=volume.getReplicationGroupInstance();
    if (volume.isVPlexVolume(_dbClient)) {
      Volume backedVol=VPlexUtil.getVPLEXBackendVolume(volume,true,_dbClient);
      if (backedVol != null) {
        repGroupName=backedVol.getReplicationGroupInstance();
      }
    }
    repGroupToVolumeMap.put(repGroupName,volume);
  }
  return repGroupToVolumeMap;
}

private Map < String , Volume > groupVolumesByReplicationGroup ( List < Volume > volumeList ) { Map < String , Volume > repGroupToVolumeMap = new HashMap < String , Volume > ( ) ; for ( Volume volume : volumeList ) { String repGroupName = volume . getReplicationGroupInstance ( ) ; if ( volume . isVPlexVolume ( _dbClient ) ) { Volume backedVol = VPlexUtil . getVPLEXBackendVolume ( volume , true , _dbClient ) ; if ( backedVol != null ) { repGroupName = backedVol . getReplicationGroupInstance ( ) ; } } repGroupToVolumeMap . put ( repGroupName , volume ) ; } return repGroupToVolumeMap ; }
returns a map of replication group name to one of the volumes in the group .
