Changed: got rid of deprecated code (use of getRequest())