code: @Override
  	public CPDefinitionLink[] findByUuid_PrevAndNext(long CPDefinitionLinkId,
  		String uuid, OrderByComparator<CPDefinitionLink> orderByComparator)
  		throws NoSuchCPDefinitionLinkException {
  		CPDefinitionLink cpDefinitionLink = findByPrimaryKey(CPDefinitionLinkId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CPDefinitionLink[] array = new CPDefinitionLinkImpl[3];
  
  			array[0] = getByUuid_PrevAndNext(session, cpDefinitionLink, uuid,
  					orderByComparator, true);
  
  			array[1] = cpDefinitionLink;
  
  			array[2] = getByUuid_PrevAndNext(session, cpDefinitionLink, uuid,
  					orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Returns the cp definition links before and after the current cp definition link in the ordered set where uuid = &#63;.
  
  @param CPDefinitionLinkId the primary key of the current cp definition link
  @param uuid the uuid
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next cp definition link
  @throws NoSuchCPDefinitionLinkException if a cp definition link with the primary key could not be found