code: @Override
  	public CPRuleUserSegmentRel findByCPRuleId_First(long CPRuleId,
  		OrderByComparator<CPRuleUserSegmentRel> orderByComparator)
  		throws NoSuchCPRuleUserSegmentRelException {
  		CPRuleUserSegmentRel cpRuleUserSegmentRel = fetchByCPRuleId_First(CPRuleId,
  				orderByComparator);
  
  		if (cpRuleUserSegmentRel != null) {
  			return cpRuleUserSegmentRel;
  		}
  
  		StringBundler msg = new StringBundler(4);
  
  		msg.append(_NO_SUCH_ENTITY_WITH_KEY);
  
  		msg.append("CPRuleId=");
  		msg.append(CPRuleId);
  
  		msg.append("}");
  
  		throw new NoSuchCPRuleUserSegmentRelException(msg.toString());
  	}
docs: Returns the first 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 first matching cp rule user segment rel
  @throws NoSuchCPRuleUserSegmentRelException if a matching cp rule user segment rel could not be found