Made changes to return json on REST API. Fails with MessageBodyWriter exception