ItsNatServletResponseImpl itsNatResponse = itsNatRequest.getItsNatServletResponseImpl();
ServletRequest request = itsNatRequest.getServletRequest();
ServletResponse response = itsNatResponse.getServletResponse();
request.setAttribute("itsnat_action",ITSNAT_ACTION_EVENT_STATELESS_PHASE_LOAD_DOC);
ItsNatServletRequestImpl itsNatRequestLoadPhase = itsNatServlet.processRequestInternal(request,response,null);
ClientDocumentImpl clientDoc = itsNatRequestLoadPhase.getClientDocumentImpl();
if (clientDoc instanceof ClientDocumentStfulImpl)
{
// No necesitamos un ResponseEventStatelessImpl
request.setAttribute("itsnat_action",ITSNAT_ACTION_EVENT);
request.setAttribute("itsnat_eventType","stateless");
ItsNatServletRequestImpl itsNatRequestEventPhase = itsNatServlet.processRequestInternal(request,response,(ClientDocumentStfulImpl)clientDoc);
}
else
{
// Puede ser el caso de ClientDocumentWithoutDocumentDefaultImpl
processDocumentTemplateNotFound(clientDoc);