fix for usergroupcallback and userinfo in hosted mode and tomcat