public User getCurrentUser() {
		Authentication auth = SecurityContextHolder.getContext().getAuthentication();
		if (auth == null) {
			throw new AuthenticationCredentialsNotFoundException("No authentication");
		}
		Object obj = auth.getPrincipal();
		if (!(obj instanceof SecuredUser)) {
			throw new AuthenticationCredentialsNotFoundException("Invalid authentication with " + obj);
		}
		SecuredUser securedUser = (SecuredUser) obj;
		return securedUser.getUser();
	}
Get current user object from context.

@return current user;
ngrinder-controller/src/main/java/org/ngrinder/user/service/UserContext.java