this.hardtokenprofiledatahandler = new HardTokenProfileDataHandler(admin, hardtokensession, authorizationsession , useradminsession, informationmemory);
this.hardtokenprofiledatahandler = new HardTokenProfileDataHandler(admin, hardtokensession, certificatesession, authorizationsession , useradminsession, informationmemory);
    public void initialize(HttpServletRequest request, EjbcaWebBean ejbcawebbean) throws  Exception{      if(!initialized){        admininformation = new AdminInformation(((X509Certificate[]) request.getAttribute( "javax.servlet.request.X509Certificate" ))[0]);        admin           = new Admin(((X509Certificate[]) request.getAttribute( "javax.servlet.request.X509Certificate" ))[0]);        InitialContext jndicontext = new InitialContext();        IHardTokenSessionLocalHome hardtokensessionhome = (IHardTokenSessionLocalHome) javax.rmi.PortableRemoteObject.narrow(jndicontext.lookup("java:comp/env/HardTokenSessionLocal"),                                                                                 IHardTokenSessionLocalHome.class);        hardtokensession = hardtokensessionhome.create();        IHardTokenBatchJobSessionLocalHome  hardtokenbatchsessionhome = (IHardTokenBatchJobSessionLocalHome) javax.rmi.PortableRemoteObject.narrow(jndicontext.lookup("java:comp/env/HardTokenBatchJobSessionLocal"),                                                                                 IHardTokenBatchJobSessionLocalHome.class);        hardtokenbatchsession = hardtokenbatchsessionhome.create();        		IAuthorizationSessionLocalHome  authorizationsessionhome = (IAuthorizationSessionLocalHome) javax.rmi.PortableRemoteObject.narrow(jndicontext.lookup("java:comp/env/AuthorizationSessionLocal"),																				 IAuthorizationSessionLocalHome.class);		IAuthorizationSessionLocal authorizationsession = authorizationsessionhome.create();		Object obj1 = jndicontext.lookup("java:comp/env/UserAdminSessionLocal");		IUserAdminSessionLocalHome adminsessionhome = (IUserAdminSessionLocalHome) javax.rmi.PortableRemoteObject.narrow(obj1, IUserAdminSessionLocalHome.class);		IUserAdminSessionLocal useradminsession = adminsessionhome.create();        initialized=true;                this.informationmemory = ejbcawebbean.getInformationMemory();                              this.hardtokenprofiledatahandler = new HardTokenProfileDataHandler(admin, hardtokensession, authorizationsession , useradminsession, informationmemory);		      }    }