throws XMLDispatcherUserException, XMLDispatcherAppException
{
XMLDispatcherSession sess = ThreadLocalXdCtx.get().getSession();
if (sess == null)
{
throw new XMLDispatcherUserException("not logged on");
} else
{
if (!((XdTestSuiteSession) sess).getUserId().equals("TOTO"))
{
throw new XMLDispatcherUserException("wrong userId in session");
} else
{
// ok
}
}