def METHOD_NAME(self, product, buffer):
    if product.name in self.particulator.products:
        raise ValueError(f'product name "{product.name}" already registered')
    product.set_buffer(buffer)
    product.register(self)
    self.particulator.products[product.name] = product