log.error("Error creating object: ",e);
    public EjbcaAuthorization(AdminGroup[] admingroups, GlobalConfiguration globalconfiguration,        ILogSessionRemote logsession, Admin admin, int module)        throws NamingException, CreateException, RemoteException {        accesstree = new AccessTree();        buildAccessTree(admingroups);        this.admin = admin;        this.logsession = logsession;        this.module = module;        InitialContext jndicontext = new InitialContext();        Object obj1 = jndicontext.lookup("CertificateStoreSession");        try {            ICertificateStoreSessionHome certificatesessionhome = (ICertificateStoreSessionHome) javax.rmi.PortableRemoteObject.narrow(obj1,                    ICertificateStoreSessionHome.class);            certificatesession = certificatesessionhome.create();            ISignSessionHome signhome = (ISignSessionHome) PortableRemoteObject.narrow(jndicontext.lookup(                        "RSASignSession"), ISignSessionHome.class);            ISignSessionRemote signsession = signhome.create();            this.cacertificatechain = signsession.getCertificateChain(admin);        } catch (Exception e) {            throw new CreateException(e.getMessage());        }    }