}
}
private CriteriaConfigurer getCriteriaConfigurer(final String email, final String name, final String surname, final String companyId, final String mpkId) {
return new CriteriaConfigurer() {
@Override
public void configure(DetachedCriteria criteria) {
if (hasText(email)) {
criteria.add(Restrictions.ilike("email", email, MatchMode.ANYWHERE));
}