@RequestMapping(value = "/documentfolders", method = RequestMethod.GET)
 @ResponseBody
 public List<DocumentFolder> getAllFoldersOfUser() {
   LOG.debug("Request to get all document folders of current user");
   List<DocumentFolder> result = documentFolderService.getAllFoldersOfUser();
   return result;
 }
 @RequestMapping(value = "/documentfolders", method = RequestMethod.POST)
 @ResponseBody
 public DocumentFolder createFolder(@RequestBody @Valid DocumentFolder folder) {
   LOG.debug("Reqest to create new document folder: {}", folder);
   return documentFolderService.saveWithUser(folder);
 }