a port of Rack to Java