code: public static CPRuleUserSegmentRel findByCPRuleId_Last(long CPRuleId,
  		OrderByComparator<CPRuleUserSegmentRel> orderByComparator)
  		throws com.liferay.commerce.product.exception.NoSuchCPRuleUserSegmentRelException {
  		return getPersistence().findByCPRuleId_Last(CPRuleId, orderByComparator);
  	}
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
  @throws NoSuchCPRuleUserSegmentRelException if a matching cp rule user segment rel could not be found