Scripting and page rendering handler extracted from Spring Controller.