Refactored AbstractRestController