public static Example getExampleCriterion(Object entity, String[] excludePropertes,
MatchMode mode) {
Example example = Example.create(entity)
.setPropertySelector(new NotEmptyPropertySelector());
if (null != mode) {
example.enableLike(mode);
}
if (null != excludePropertes) {
for (int i = 0; i < excludePropertes.length; i++) {
example.excludeProperty(excludePropertes[i]);
}