PMD : refactor product attribute handler