samples/boot/findbyusername/src/main/java/sample/mvc/IndexController.java
@RequestMapping(value = "/sessions/{sessionIdToDelete}", method = RequestMethod.DELETE)
	public String removeSession(Principal principal,
			@PathVariable String sessionIdToDelete) {
		Set<String> usersSessionIds = this.sessions
				.findByPrincipalName(principal.getName()).keySet();
		if (usersSessionIds.contains(sessionIdToDelete)) {
			this.sessions.deleteById(sessionIdToDelete);
		}

		return "redirect:/";
	}
@RequestMapping(value = "/sessions/{sessionIdToDelete}", method = RequestMethod.DELETE)
	public String removeSession(Principal principal,
			@PathVariable String sessionIdToDelete) {
		Set<String> usersSessionIds = this.sessions
				.findByPrincipalName(principal.getName()).keySet();
		if (usersSessionIds.contains(sessionIdToDelete)) {
			this.sessions.deleteById(sessionIdToDelete);
		}

		return "redirect:/";
	}
@ RequestMapping ( value = "/sessions/{sessionIdToDelete}" , method = RequestMethod . DELETE ) public String removeSession ( Principal principal , @ PathVariable String sessionIdToDelete ) { Set < String > usersSessionIds = this . sessions . findByPrincipalName ( principal . getName ( ) ) . keySet ( ) ; if ( usersSessionIds . contains ( sessionIdToDelete ) ) { this . sessions . deleteById ( sessionIdToDelete ) ; } return "redirect:/" ; }
end::findbyusername[]
end :: findbyusername []