How can I map the returned resource to its corresponding class?

Can not find id property in hapi fhir model class

I can not map the received object to its corresponding class, for example: getting the practitioner resource object and saving it to a variable of type Practitioner, gives me an error because it can not find the property named id in the Practitioner model

this happens for bundle and every request that returns an id

It’s probably best to ask this on the chat.fhir.org HAPI stream