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