private List<?> getResultSet(Class<? extends Entity> entity, String field,
String param, boolean ignoreCase) {
SimpleExpression fieldRestriction = Restrictions.eq(field, param);
if (ignoreCase) {
fieldRestriction = fieldRestriction.ignoreCase();
}
return sessionFactory
.getCurrentSession()
.createCriteria(entity)
.add(fieldRestriction)