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