code: @Override
  	public CPRuleUserSegmentRel fetchByCPRuleId_Last(long CPRuleId,
  		OrderByComparator<CPRuleUserSegmentRel> orderByComparator) {
  		int count = countByCPRuleId(CPRuleId);
  
  		if (count == 0) {
  			return null;
  		}
  
  		List<CPRuleUserSegmentRel> list = findByCPRuleId(CPRuleId, count - 1,
  				count, orderByComparator);
  
  		if (!list.isEmpty()) {
  			return list.get(0);
  		}
  
  		return null;
  	}
docs: Returns the last cp rule user segment rel in the ordered set where CPRuleId = &#63;.
  
  @param CPRuleId the cp rule ID
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the last matching cp rule user segment rel, or <code>null</code> if a matching cp rule user segment rel could not be found