code: @Override
  	public CPDefinitionOptionValueRel[] findByGroupId_PrevAndNext(
  		long CPDefinitionOptionValueRelId, long groupId,
  		OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
  		throws NoSuchCPDefinitionOptionValueRelException {
  		CPDefinitionOptionValueRel cpDefinitionOptionValueRel = findByPrimaryKey(CPDefinitionOptionValueRelId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CPDefinitionOptionValueRel[] array = new CPDefinitionOptionValueRelImpl[3];
  
  			array[0] = getByGroupId_PrevAndNext(session,
  					cpDefinitionOptionValueRel, groupId, orderByComparator, true);
  
  			array[1] = cpDefinitionOptionValueRel;
  
  			array[2] = getByGroupId_PrevAndNext(session,
  					cpDefinitionOptionValueRel, groupId, orderByComparator,
  					false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Returns the cp definition option value rels before and after the current cp definition option value rel in the ordered set where groupId = &#63;.
  
  @param CPDefinitionOptionValueRelId the primary key of the current cp definition option value rel
  @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 definition option value rel
  @throws NoSuchCPDefinitionOptionValueRelException if a cp definition option value rel with the primary key could not be found