extracted some template methods in product data mapper so extensions can add their own filtering criteria