ItsNatServletResponseImpl itsNatResponse = getItsNatServletResponse();
ItsNatServletRequestImpl itsNatRequest = itsNatResponse.getItsNatServletRequestImpl();
ServletResponse responseOriginal = itsNatResponse.getServletResponse();
ServletResponseAttachedServer servResWrapper = itsNatResponse.createServletResponseAttachedServer();
itsNatResponse.setServletResponse(servResWrapper);
RequestNormalLoadDocAttachedServerImpl delegRequest = new RequestNormalLoadDocAttachedServerImpl(template,getRequestAttachedServerLoadDoc(),itsNatRequest);
itsNatRequest.setRequest(delegRequest); // Para que al procesar el request el ItsNatServletRequestImpl est� correctamente conectado a request de carga normal no al attached y el c�digo del usuario obtenga el ClientDocument normal por ejemplo
delegRequest.process(null);
ClientDocumentStfulImpl clientDocNormal = delegRequest.getClientDocumentStful();
Browser browser = clientDocNormal.getBrowser();
itsNatResponse.setServletResponse(responseOriginal); // restauramos
// Los objetos ItsNatServletRequestImpl y ItsNatServletResponseImpl quedan vinculados
// a los objetos RequestImpl y ResponseImpl de la carga normal y est� bien as�
String resultMarkup = servResWrapper.getString(delegRequest.getResponse().getEncoding());
StringBuilder code = new StringBuilder();
code.append("itsnat.clean();\n");
code.append("try{ delete window.itsnat; }catch(ex){}\n"); // Ya ha cumplido su funci�n