code: @Override
  	public CommerceOrderPayment[] findByCommerceOrderId_PrevAndNext(
  		long commerceOrderPaymentId, long commerceOrderId,
  		OrderByComparator<CommerceOrderPayment> orderByComparator)
  		throws NoSuchOrderPaymentException {
  		CommerceOrderPayment commerceOrderPayment = findByPrimaryKey(commerceOrderPaymentId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CommerceOrderPayment[] array = new CommerceOrderPaymentImpl[3];
  
  			array[0] = getByCommerceOrderId_PrevAndNext(session,
  					commerceOrderPayment, commerceOrderId, orderByComparator,
  					true);
  
  			array[1] = commerceOrderPayment;
  
  			array[2] = getByCommerceOrderId_PrevAndNext(session,
  					commerceOrderPayment, commerceOrderId, orderByComparator,
  					false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Returns the commerce order payments before and after the current commerce order payment in the ordered set where commerceOrderId = &#63;.
  
  @param commerceOrderPaymentId the primary key of the current commerce order payment
  @param commerceOrderId the commerce order ID
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next commerce order payment
  @throws NoSuchOrderPaymentException if a commerce order payment with the primary key could not be found