@Override
    public void setRoles(List<RoleEntity> inRoles) {
        if (inRoles == null) {
            this.roles = new ArrayList<>();
        } else {
            this.roles = new ArrayList<>(inRoles);
        }
        this.roles = inRoles;
    }
@ Override public void setRoles ( List < RoleEntity > inRoles ) { if ( inRoles == null ) { this . roles = new ArrayList < > ( ) ; } else { this . roles = new ArrayList < > ( inRoles ) ; } this . roles = inRoles ; }
Set the roles assigned to the current user.

@param inRoles A list of roles to be assigned to the user.