A bit refined version of the RoleRegistry.