Ensure to consume entity when no exception translator is set
Use try with resource when possibile to ensure stream is closed properly