code: @Override
  	public CPMeasurementUnit[] findByUuid_C_PrevAndNext(
  		long CPMeasurementUnitId, String uuid, long companyId,
  		OrderByComparator<CPMeasurementUnit> orderByComparator)
  		throws NoSuchCPMeasurementUnitException {
  		CPMeasurementUnit cpMeasurementUnit = findByPrimaryKey(CPMeasurementUnitId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CPMeasurementUnit[] array = new CPMeasurementUnitImpl[3];
  
  			array[0] = getByUuid_C_PrevAndNext(session, cpMeasurementUnit,
  					uuid, companyId, orderByComparator, true);
  
  			array[1] = cpMeasurementUnit;
  
  			array[2] = getByUuid_C_PrevAndNext(session, cpMeasurementUnit,
  					uuid, companyId, orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Returns the cp measurement units before and after the current cp measurement unit in the ordered set where uuid = &#63; and companyId = &#63;.
  
  @param CPMeasurementUnitId the primary key of the current cp measurement unit
  @param uuid the uuid
  @param companyId the company ID
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next cp measurement unit
  @throws NoSuchCPMeasurementUnitException if a cp measurement unit with the primary key could not be found