code: @Override
  	public CPMeasurementUnit fetchByPrimaryKey(Serializable primaryKey) {
  		Serializable serializable = entityCache.getResult(CPMeasurementUnitModelImpl.ENTITY_CACHE_ENABLED,
  				CPMeasurementUnitImpl.class, primaryKey);
  
  		if (serializable == nullModel) {
  			return null;
  		}
  
  		CPMeasurementUnit cpMeasurementUnit = (CPMeasurementUnit)serializable;
  
  		if (cpMeasurementUnit == null) {
  			Session session = null;
  
  			try {
  				session = openSession();
  
  				cpMeasurementUnit = (CPMeasurementUnit)session.get(CPMeasurementUnitImpl.class,
  						primaryKey);
  
  				if (cpMeasurementUnit != null) {
  					cacheResult(cpMeasurementUnit);
  				}
  				else {
  					entityCache.putResult(CPMeasurementUnitModelImpl.ENTITY_CACHE_ENABLED,
  						CPMeasurementUnitImpl.class, primaryKey, nullModel);
  				}
  			}
  			catch (Exception e) {
  				entityCache.removeResult(CPMeasurementUnitModelImpl.ENTITY_CACHE_ENABLED,
  					CPMeasurementUnitImpl.class, primaryKey);
  
  				throw processException(e);
  			}
  			finally {
  				closeSession(session);
  			}
  		}
  
  		return cpMeasurementUnit;
  	}
docs: Returns the cp measurement unit with the primary key or returns <code>null</code> if it could not be found.
  
  @param primaryKey the primary key of the cp measurement unit
  @return the cp measurement unit, or <code>null</code> if a cp measurement unit with the primary key could not be found