private boolean containsRepSetUID(List<ReplicationSetUID> rsetUids,ReplicationSetUID repSetUID){
  for (  ReplicationSetUID rsetUid : rsetUids) {
    if (rsetUid.getId() == repSetUID.getId()) {
      return true;
    }
  }
  return false;
}

private boolean containsRepSetUID ( List < ReplicationSetUID > rsetUids , ReplicationSetUID repSetUID ) { for ( ReplicationSetUID rsetUid : rsetUids ) { if ( rsetUid . getId ( ) == repSetUID . getId ( ) ) { return true ; } } return false ; }
returns true if repsetuid is already contained in rsetuids list .
