code: @Override
  	public CPOptionCategory remove(Serializable primaryKey)
  		throws NoSuchCPOptionCategoryException {
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CPOptionCategory cpOptionCategory = (CPOptionCategory)session.get(CPOptionCategoryImpl.class,
  					primaryKey);
  
  			if (cpOptionCategory == null) {
  				if (_log.isDebugEnabled()) {
  					_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
  				}
  
  				throw new NoSuchCPOptionCategoryException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
  					primaryKey);
  			}
  
  			return remove(cpOptionCategory);
  		}
  		catch (NoSuchCPOptionCategoryException nsee) {
  			throw nsee;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Removes the cp option category with the primary key from the database. Also notifies the appropriate model listeners.
  
  @param primaryKey the primary key of the cp option category
  @return the cp option category that was removed
  @throws NoSuchCPOptionCategoryException if a cp option category with the primary key could not be found