private Predicate[] getSearchPredicates(GroupBE searchParameters, Root<GroupBE> root) {

		CriteriaBuilder builder = this.entityManager.getCriteriaBuilder();
		List<Predicate> predicatesList = new ArrayList<Predicate>();

		String name = searchParameters.getName();
		if (name != null && !"".equals(name)) {
			predicatesList.add(builder.like(root.<String> get("name"), '%' + name + '%'));
		}
		Level level = searchParameters.getLevel();
		if (level != null) {
			predicatesList.add(builder.equal(root.get("level"), level));
		}

		return predicatesList.toArray(new Predicate[predicatesList.size()]);
	}