code: @Override
  	public CPMeasurementUnit findByG_P_T_First(long groupId, boolean primary,
  		int type, OrderByComparator<CPMeasurementUnit> orderByComparator)
  		throws NoSuchCPMeasurementUnitException {
  		CPMeasurementUnit cpMeasurementUnit = fetchByG_P_T_First(groupId,
  				primary, type, orderByComparator);
  
  		if (cpMeasurementUnit != null) {
  			return cpMeasurementUnit;
  		}
  
  		StringBundler msg = new StringBundler(8);
  
  		msg.append(_NO_SUCH_ENTITY_WITH_KEY);
  
  		msg.append("groupId=");
  		msg.append(groupId);
  
  		msg.append(", primary=");
  		msg.append(primary);
  
  		msg.append(", type=");
  		msg.append(type);
  
  		msg.append("}");
  
  		throw new NoSuchCPMeasurementUnitException(msg.toString());
  	}
docs: Returns the first cp measurement unit in the ordered set where groupId = &#63; and primary = &#63; and type = &#63;.
  
  @param groupId the group ID
  @param primary the primary
  @param type the type
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the first matching cp measurement unit
  @throws NoSuchCPMeasurementUnitException if a matching cp measurement unit could not be found