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