/**
  * GET /users/:login : get the "login" user.
  *
  * @param login the login of the user to find
  * @return the ResponseEntity with status 200 (OK) and with body the "login" user, or with status
  *     404 (Not Found)
  */
 @GetMapping("/users/{login:"******"}")
 @Timed
 public ResponseEntity<ManagedUserVM> getUser(@PathVariable String login) {
   log.debug("REST request to get User : {}", login);
   return userService
       .getUserWithAuthoritiesByLogin(login)
       .map(ManagedUserVM::new)
       .map(managedUserVM -> new ResponseEntity<>(managedUserVM, HttpStatus.OK))
       .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));
 }
 /**
  * GET /users/:login : get the "login" user.
  *
  * @param login the login of the user to find
  * @return the ResponseEntity with status 200 (OK) and with body the "login" user, or with status
  *     404 (Not Found)
  */
 @RequestMapping(
     value = "/users/{login:"******"}",
     method = RequestMethod.GET,
     produces = MediaType.APPLICATION_JSON_VALUE)
 @Timed
 public ResponseEntity<ManagedUserDTO> getUser(@PathVariable String login) {
   log.debug("REST request to get User : {}", login);
   return userService
       .getUserWithAuthoritiesByLogin(login)
       .map(ManagedUserDTO::new)
       .map(managedUserDTO -> new ResponseEntity<>(managedUserDTO, HttpStatus.OK))
       .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));
 }