package Ġnet . sl ing spot . server . jav al in . auth Ċ Ċ import Ġio . jav al in . core . security . Role Ċ import Ġnet . sl ing spot . server . auth . UserRole Ċ Ċ /** Ċ Ġ* ĠInternal ĠJ aval in - based ĠRole Ġthat Ġwraps Ġthe Ġgeneric Ġs ling spot Ġserver ĠUser Role . Ċ Ġ*/ Ċ internal Ġdata Ġclass ĠJ aval in Role ( val Ġuser Role : ĠUser Role ) Ġ: ĠRole Ċ Ċ internal Ġfun ĠCollection < UserRole >. to J aval in Roles () Ġ= Ġmap Ġ{ ĠJ aval in Role ( it ) Ġ}. toSet () Ċ Ċ internal Ġfun ĠCollection < Role >. to User Roles () Ġ= Ġmap Ġ{ Ġ( it Ġas ĠJ aval in Role ). user Role Ġ}. toSet () Ċ