return null;
}
String userName = getCurrentUserName();
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
if(authentication != null && !(authentication instanceof AnonymousAuthenticationToken)) {
Credential credential = authTokenInformer.getCredentials(authentication);
User user = credential == null ? null : credential.getUser();
if(user == null) {
throw new BusinessLogicException("Unknown user '" + userName + "'");
}
return user;
}