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