public void thisDocument()
{
ItsNatDocument itsNatDoc = getItsNatDocument();
Document doc = itsNatDoc.getDocument();
ItsNatVariableResolver resolver = itsNatDoc.createItsNatVariableResolver();
ClientDocument owner = itsNatDoc.getClientDocumentOwner();
ItsNatHttpSession itsNatSession = (ItsNatHttpSession)owner.getItsNatSession();
HttpSession session = itsNatSession.getHttpSession();
session.setAttribute("sessionId",itsNatSession.getId());
itsNatDoc.setAttribute("docId",itsNatDoc.getId());
resolver.setLocalVariable("refreshInterval",new Integer(3000));
resolver.setLocalVariable("commMode",new Integer(CommMode.XHR_ASYNC));