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