code: public static CommerceDiscountRule findByCommerceDiscountId_Last(
  		long commerceDiscountId,
  		OrderByComparator<CommerceDiscountRule> orderByComparator)
  		throws com.liferay.commerce.discount.exception.NoSuchDiscountRuleException {
  		return getPersistence()
  				   .findByCommerceDiscountId_Last(commerceDiscountId,
  			orderByComparator);
  	}
docs: Returns the last commerce discount rule in the ordered set where commerceDiscountId = &#63;.
  
  @param commerceDiscountId the commerce discount ID
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the last matching commerce discount rule
  @throws NoSuchDiscountRuleException if a matching commerce discount rule could not be found