code: @Override
  	public CPDefinitionInventory findByCPDefinitionId(long CPDefinitionId)
  		throws NoSuchCPDefinitionInventoryException {
  		CPDefinitionInventory cpDefinitionInventory = fetchByCPDefinitionId(CPDefinitionId);
  
  		if (cpDefinitionInventory == null) {
  			StringBundler msg = new StringBundler(4);
  
  			msg.append(_NO_SUCH_ENTITY_WITH_KEY);
  
  			msg.append("CPDefinitionId=");
  			msg.append(CPDefinitionId);
  
  			msg.append("}");
  
  			if (_log.isDebugEnabled()) {
  				_log.debug(msg.toString());
  			}
  
  			throw new NoSuchCPDefinitionInventoryException(msg.toString());
  		}
  
  		return cpDefinitionInventory;
  	}
docs: Returns the cp definition inventory where CPDefinitionId = &#63; or throws a {@link NoSuchCPDefinitionInventoryException} if it could not be found.
  
  @param CPDefinitionId the cp definition ID
  @return the matching cp definition inventory
  @throws NoSuchCPDefinitionInventoryException if a matching cp definition inventory could not be found