Single Class REST Server using Java SE