A basic request/response router in Java