code: public int getGroupSize() {
          if (groupSize > 0 || cpMemberCount == 0) {
              return groupSize;
          }
  
          int groupSize = cpMemberCount;
          if (groupSize % 2 == 0) {
              groupSize--;
          }
  
          return Math.min(groupSize, MAX_GROUP_SIZE);
      }
docs: Returns number of CP members that each CP group will consist of
  Returns 0 if CP member count is 0.
  If group size is not set:
  - returns CP member count if it is an odd number
  - returns CP member count - 1 if it is an even number
  
  @return number of CP members that each CP group will consist of