Generic type for BeanComparator