code: @Override
  	public CPDAvailabilityEstimate fetchByCommerceAvailabilityEstimateId_Last(
  		long commerceAvailabilityEstimateId,
  		OrderByComparator<CPDAvailabilityEstimate> orderByComparator) {
  		int count = countByCommerceAvailabilityEstimateId(commerceAvailabilityEstimateId);
  
  		if (count == 0) {
  			return null;
  		}
  
  		List<CPDAvailabilityEstimate> list = findByCommerceAvailabilityEstimateId(commerceAvailabilityEstimateId,
  				count - 1, count, orderByComparator);
  
  		if (!list.isEmpty()) {
  			return list.get(0);
  		}
  
  		return null;
  	}
docs: Returns the last cpd availability estimate in the ordered set where commerceAvailabilityEstimateId = &#63;.
  
  @param commerceAvailabilityEstimateId the commerce availability estimate ID
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the last matching cpd availability estimate, or <code>null</code> if a matching cpd availability estimate could not be found