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