private boolean checkIfCGNameAlreadyExists(AbstractChangeTrackingSet<String> cgExistingNamesSet,String replicationGroupInstance){
  if (null != cgExistingNamesSet && !cgExistingNamesSet.isEmpty()) {
    for (    String existingCgName : cgExistingNamesSet) {
      if (existingCgName.contains(replicationGroupInstance)) {
        return true;
      }
    }
  }
  return false;
}

private boolean checkIfCGNameAlreadyExists ( AbstractChangeTrackingSet < String > cgExistingNamesSet , String replicationGroupInstance ) { if ( null != cgExistingNamesSet && ! cgExistingNamesSet . isEmpty ( ) ) { for ( String existingCgName : cgExistingNamesSet ) { if ( existingCgName . contains ( replicationGroupInstance ) ) { return true ; } } } return false ; }
this utility verifies whether cg name already exists in the list or not . since vplex ingestion already populates the cluster & cg name , we don ' t need to add again here .
