Currently, Dataverse uses a very classic Servlet although it's a Jakarta EE application. Maybe it would be a good thing to provide a sane but extensible JAX-RS based endpoint implementation as a separate module?