I think he is actually writing a web server/servlet container.
You could try using reflection to create the servlet etc. Just look in the web.xml for the servlet definition and grab the class.
Use reflection to create an instance of that object ->
Trail: The Reflection API (The Java™ Tutorials)
// Json