class VersionController {

    @ResponseBody
    @RequestMapping(value = "/version", method = RequestMethod.GET)
    public ResponseEntity<String> getVersion() {
        String messageSearchVersion = titleProvider.getVersionTitle();
        String jsonData = "{\"messageSearchVersion\":\"" + messageSearchVersion + "\"}";
        HttpHeaders responseHeaders = new HttpHeaders();
        responseHeaders.setContentType(MediaType.APPLICATION_JSON);
        return new ResponseEntity<String>(jsonData, responseHeaders, HttpStatus.CREATED);
    }

}