code: @Override
  	public CPDefinition findByC_ERC(long companyId, String externalReferenceCode)
  		throws NoSuchCPDefinitionException {
  		CPDefinition cpDefinition = fetchByC_ERC(companyId,
  				externalReferenceCode);
  
  		if (cpDefinition == null) {
  			StringBundler msg = new StringBundler(6);
  
  			msg.append(_NO_SUCH_ENTITY_WITH_KEY);
  
  			msg.append("companyId=");
  			msg.append(companyId);
  
  			msg.append(", externalReferenceCode=");
  			msg.append(externalReferenceCode);
  
  			msg.append("}");
  
  			if (_log.isDebugEnabled()) {
  				_log.debug(msg.toString());
  			}
  
  			throw new NoSuchCPDefinitionException(msg.toString());
  		}
  
  		return cpDefinition;
  	}
docs: Returns the cp definition where companyId = &#63; and externalReferenceCode = &#63; or throws a {@link NoSuchCPDefinitionException} if it could not be found.
  
  @param companyId the company ID
  @param externalReferenceCode the external reference code
  @return the matching cp definition
  @throws NoSuchCPDefinitionException if a matching cp definition could not be found