I can make a user login first, then the user may pick his/her identity. But that would not set roles properly. Or may I set roles after login?
But I would like to know how to make a "clean" solution, anyway. I am sometimes surprised, how simple problems have only complicated solutions in the JEE world.