public Set<String> filterVolumesAlreadyPartOfReplicationGroup(StorageSystem storage,CIMObjectPath replicationGroupPath,String[] deviceIds) throws Exception {
  Set<String> volumes=new HashSet<String>(Arrays.asList(deviceIds));
  Set<String> volumesInRG=getVolumeDeviceIdsFromStorageGroup(storage,replicationGroupPath);
  volumes.removeAll(volumesInRG);
  return volumes;
}

public Set < String > filterVolumesAlreadyPartOfReplicationGroup ( StorageSystem storage , CIMObjectPath replicationGroupPath , String [ ] deviceIds ) throws Exception { Set < String > volumes = new HashSet < String > ( Arrays . asList ( deviceIds ) ) ; Set < String > volumesInRG = getVolumeDeviceIdsFromStorageGroup ( storage , replicationGroupPath ) ; volumes . removeAll ( volumesInRG ) ; return volumes ; }
filter volumes that are already part of the replication group .
