code: public static CPAttachmentFileEntry findByC_ERC(long companyId,
  		String externalReferenceCode)
  		throws com.liferay.commerce.product.exception.NoSuchCPAttachmentFileEntryException {
  		return getPersistence().findByC_ERC(companyId, externalReferenceCode);
  	}
docs: Returns the cp attachment file entry where companyId = &#63; and externalReferenceCode = &#63; or throws a {@link NoSuchCPAttachmentFileEntryException} if it could not be found.
  
  @param companyId the company ID
  @param externalReferenceCode the external reference code
  @return the matching cp attachment file entry
  @throws NoSuchCPAttachmentFileEntryException if a matching cp attachment file entry could not be found