I\'m trying to write a generic REST endpoint for a Jersey application I\'m developing with around 30-40 different entities. I was hoping I could do something like the follo