Collection<GrantedAuthority> authorities = new ArrayList<GrantedAuthority>();
/*
* for (UserRoles role : user.getUserRoleses()) { authorities.add(new GrantedAuthorityImpl(role.getRoles().getRoleName())); }
*/
// authorities.add(new GrantedAuthorityImpl("ROLE_GOD"));
authorities.add(new GrantedAuthorityImpl(user.getRole()));
UserDetails userS = new UserDetails(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
userS.setName(user.getName());
userS.setLastname(user.getLastName());
userS.setLanguage(user.getLanguage());
userS.setAccount(user.getAccount().getId());