code: @Override
  	public CommercePriceEntry[] findByCPInstanceUuid_PrevAndNext(
  		long commercePriceEntryId, String CPInstanceUuid,
  		OrderByComparator<CommercePriceEntry> orderByComparator)
  		throws NoSuchPriceEntryException {
  		CommercePriceEntry commercePriceEntry = findByPrimaryKey(commercePriceEntryId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CommercePriceEntry[] array = new CommercePriceEntryImpl[3];
  
  			array[0] = getByCPInstanceUuid_PrevAndNext(session,
  					commercePriceEntry, CPInstanceUuid, orderByComparator, true);
  
  			array[1] = commercePriceEntry;
  
  			array[2] = getByCPInstanceUuid_PrevAndNext(session,
  					commercePriceEntry, CPInstanceUuid, orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Returns the commerce price entries before and after the current commerce price entry in the ordered set where CPInstanceUuid = &#63;.
  
  @param commercePriceEntryId the primary key of the current commerce price entry
  @param CPInstanceUuid the cp instance uuid
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next commerce price entry
  @throws NoSuchPriceEntryException if a commerce price entry with the primary key could not be found