@SuppressWarnings("unchecked")
	public List findEntityByName(String name, Class c) {

		List ds = new ArrayList();
		em = dbUtil.getEntityManager();
		String sql = findByNameQuery.get(c);
		Query q = em.createNativeQuery(sql, c);
		q.setParameter(1, name + "%");

		if (!q.getResultList().isEmpty()) {
			ds = q.getResultList();
			LOGGER.debug(new Date() + "entity found" + ds.toString());
		}

		return ds;

	}