flexible entity querying for JPA2 example objects of any type