}
@Override
protected void preRun() {
if (module_ != null) {
NotesContext nctx = new NotesContext(module_);
NotesContext.initThread(nctx);
LCDAdapterHttpSession httpSession = LCDAdapterHttpSession.getAdaptedSession(module_, "sometestid" + new Date(),
module_.getServletContext());
HttpServletRequest request = new StubHttpServletRequest(httpSession, new StubServerPrincipal());
HttpServletResponse response = new StubHttpServletResponse();
try {
nctx.initRequest(request);
} catch (ServletException e) {
e.printStackTrace();
}
FacesContextFactory contextFactory = (FacesContextFactory) FactoryFinder.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY);
contextFactory.getFacesContext(module_.getServletContext(), request, response, dummyLifeCycle);