Refactored processRequest method of the RestHandler
Adjusted base controller for get operations