To avoid ClassCastException while retriving entity from RESTResource of
GenericResource
Merge pull request #145 from ssethupathi/fixing

To avoid ClassCastException while retriving entity from RESTResource of GenericResource instead of EntityResource