class ConfigApiController {

    @RequestMapping(value = "/{name}", method = RequestMethod.GET,
            produces = { MediaType.APPLICATION_JSON_UTF8_VALUE,
            MediaType.TEXT_PLAIN_VALUE })
    @ResponseBody
    public Object getConfig(@PathVariable("name") String name)
    {
        log.debug("Get [{}] configuration", name);
        return configService.getConfigAsJson(name);
    }

}