class NamespaceRestController {

    @RequestMapping(value = "/namespaces", method = RequestMethod.POST, consumes = {"application/xml", "application/json"})
    @Secured(SecurityFunctions.FN_NAMESPACES_POST)
    public Namespace createNamespace(@RequestBody NamespaceCreateRequest request)
    {
        return namespaceService.createNamespace(request);
    }

}