Use the static code block and Judge the object is the product type or
not.