Replace global alloc by Server attribute alloc, and accessors methods, then use these methods in RequestHandler.