GLASSFISH-21148 Fixed parsing principal from metadata

- prinicpal was parsed, but metadata were not updated
GLASSFISH-21148 More descriptive exception messages
Merge pull request #45 from dmatej/GLASSFISH-21148

Glassfish 21148 - fixed bug in SSO clustered session management