question: 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 ; }
target:  Filter volumes that are already part of the Replication Group.