class MessageFormatController extends BaseController {

    @RequestMapping(path = "", method = RequestMethod.GET)
    public String index(final Model model) {
        // Setup breadcrumbs
        setupBreadCrumbs(model, null, null);

        // Retrieve all default formats
        final Iterable<MessageFormat> defaultMessageFormats = messageFormatRepository.findByIsDefaultFormatOrderByNameAsc(true);

        // Retrieve all custom formats
        final Iterable<MessageFormat> customMessageFormats = messageFormatRepository.findByIsDefaultFormatOrderByNameAsc(false);

        // Set view attributes
        model.addAttribute("defaultMessageFormats", defaultMessageFormats);
        model.addAttribute("customMessageFormats", customMessageFormats);

        return "configuration/messageFormat/index";
    }

}