Hack for JAXB context creation
Implemented for Streams, still suffers from HATEOAS bug when list is empty