I'm assuming this was posted as a joke, because the HN crowd is pretty anti-Java.
You can, of course, take easier approaches. With RESTEasy, for instance, you add a single line of configuration to web.xml then add the desired annotations to your POJOs and you are in business.