class NamespaceRestController {

    @RequestMapping(value = "/namespaces/{namespaceCode}", method = RequestMethod.GET)
    @Secured(SecurityFunctions.FN_NAMESPACES_GET)
    public Namespace getNamespace(@PathVariable("namespaceCode") String namespaceCode)
    {
        return namespaceService.getNamespace(new NamespaceKey(namespaceCode));
    }

}