Improvements in role management. Fixed a bug with beta version of Mojarra.