public static List<Criterion> getEntityCriterions(String nestedName, Object entity,
String[] excludePropertes, MatchMode mode, boolean ignoreZero) {
if (null == entity) { return Collections.emptyList(); }
List<Criterion> criterions = CollectUtils.newArrayList();
BeanMap map = new BeanMap(entity);
Set keySet = map.keySet();
Collection properties = null;
if (null == excludePropertes) {
List proList = CollectUtils.newArrayList();
proList.addAll(keySet);
properties = proList;