code: @Override
  	public CPOptionValue[] findByCPOptionId_PrevAndNext(long CPOptionValueId,
  		long CPOptionId, OrderByComparator<CPOptionValue> orderByComparator)
  		throws NoSuchCPOptionValueException {
  		CPOptionValue cpOptionValue = findByPrimaryKey(CPOptionValueId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CPOptionValue[] array = new CPOptionValueImpl[3];
  
  			array[0] = getByCPOptionId_PrevAndNext(session, cpOptionValue,
  					CPOptionId, orderByComparator, true);
  
  			array[1] = cpOptionValue;
  
  			array[2] = getByCPOptionId_PrevAndNext(session, cpOptionValue,
  					CPOptionId, orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Returns the cp option values before and after the current cp option value in the ordered set where CPOptionId = &#63;.
  
  @param CPOptionValueId the primary key of the current cp option value
  @param CPOptionId the cp option ID
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next cp option value
  @throws NoSuchCPOptionValueException if a cp option value with the primary key could not be found