code: public static CPOptionValue[] findByGroupId_PrevAndNext(
  		long CPOptionValueId, long groupId,
  		OrderByComparator<CPOptionValue> orderByComparator)
  		throws com.liferay.commerce.product.exception.NoSuchCPOptionValueException {
  		return getPersistence()
  				   .findByGroupId_PrevAndNext(CPOptionValueId, groupId,
  			orderByComparator);
  	}
docs: Returns the cp option values before and after the current cp option value in the ordered set where groupId = &#63;.
  
  @param CPOptionValueId the primary key of the current cp option value
  @param groupId the group 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