Add findByCriteria method in BaseHibernateRepository.