fix for: https://issues.jboss.org/browse/SRAMP-255
fix for: https://issues.jboss.org/browse/SRAMP-257
Merge pull request #25 from EricWittmann/2.4.x-SSO

fix for: https://issues.jboss.org/browse/SRAMP-257