Removed detection of JSON request from REST controller

use Application instead it