code: @Override
  	public CommerceNotificationTemplateUserSegmentRel fetchByPrimaryKey(
  		Serializable primaryKey) {
  		Serializable serializable = entityCache.getResult(CommerceNotificationTemplateUserSegmentRelModelImpl.ENTITY_CACHE_ENABLED,
  				CommerceNotificationTemplateUserSegmentRelImpl.class, primaryKey);
  
  		if (serializable == nullModel) {
  			return null;
  		}
  
  		CommerceNotificationTemplateUserSegmentRel commerceNotificationTemplateUserSegmentRel =
  			(CommerceNotificationTemplateUserSegmentRel)serializable;
  
  		if (commerceNotificationTemplateUserSegmentRel == null) {
  			Session session = null;
  
  			try {
  				session = openSession();
  
  				commerceNotificationTemplateUserSegmentRel = (CommerceNotificationTemplateUserSegmentRel)session.get(CommerceNotificationTemplateUserSegmentRelImpl.class,
  						primaryKey);
  
  				if (commerceNotificationTemplateUserSegmentRel != null) {
  					cacheResult(commerceNotificationTemplateUserSegmentRel);
  				}
  				else {
  					entityCache.putResult(CommerceNotificationTemplateUserSegmentRelModelImpl.ENTITY_CACHE_ENABLED,
  						CommerceNotificationTemplateUserSegmentRelImpl.class,
  						primaryKey, nullModel);
  				}
  			}
  			catch (Exception e) {
  				entityCache.removeResult(CommerceNotificationTemplateUserSegmentRelModelImpl.ENTITY_CACHE_ENABLED,
  					CommerceNotificationTemplateUserSegmentRelImpl.class,
  					primaryKey);
  
  				throw processException(e);
  			}
  			finally {
  				closeSession(session);
  			}
  		}
  
  		return commerceNotificationTemplateUserSegmentRel;
  	}
docs: Returns the commerce notification template user segment rel with the primary key or returns <code>null</code> if it could not be found.
  
  @param primaryKey the primary key of the commerce notification template user segment rel
  @return the commerce notification template user segment rel, or <code>null</code> if a commerce notification template user segment rel with the primary key could not be found