class AcmMailTemplateConfigurationServiceAPIController {

    @RequestMapping(path = "/{templateName:.+}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
    @ResponseBody
    public Map<String, String> getEmailTemplate(@PathVariable(value = "templateName") String templateName)
            throws AcmEmailConfigurationException
    {
        return Collections.singletonMap("content", mailService.getTemplate(templateName));
    }

}