Set<GrantedAuthority> dbAuthsSet = new HashSet<GrantedAuthority>();
loadUserAuthorities(userStatus, dbAuthsSet);
UserInfoImpl userInfo = new UserInfoImpl();
userInfo.setUsername(username);
userInfo.setPassword(userStatus.getPassword());
userInfo.setAuthorities(this.getAuthorities(userStatus));
userInfo.setAttributes(Collections.EMPTY_LIST);
UserDetails userDetails = new UserDetailsBuilder(userInfo,
userStatus.getPassword()).build();
return userDetails;