debug("Added publisher class '"+pub.getClass().getName()+"'");
debug("Added publisher class '"+pub.getClass().getName()+"' at position "+i);
    private void initCertificateStore() throws RemoteException {        debug(">initCertificateStore()");        Context context = null;        try {            context = getInitialContext();            // First init main certificate store            if (certificateStore == null) {                ICertificateStoreSessionHome storehome = (ICertificateStoreSessionHome) javax.rmi.PortableRemoteObject.narrow(context.lookup("CertificateStoreSession"), ICertificateStoreSessionHome.class);                certificateStore = storehome.create();            }        } catch (NamingException e) {            // We could not find this publisher            error("Failed to find cert store.");            e.printStackTrace();        } catch (CreateException ce) {            // We could not find this publisher            error("Failed to create cert store.");            ce.printStackTrace();        }        // Init the publisher session beans        if (publishers == null) {            int i = 1;            publishers = new Vector(0);            try {                while (true) {                    String jndiName = "PublisherSession" + i;                    IPublisherSessionHome pubhome = (IPublisherSessionHome)javax.rmi.PortableRemoteObject.narrow(context.lookup(jndiName), IPublisherSessionHome.class);                    IPublisherSessionRemote pub = pubhome.create();                    publishers.add(pub);                    debug("Added publisher class '"+pub.getClass().getName()+"'");                    i++;                }            } catch (NamingException e) {                // We could not find this publisherm this is not an error                debug("Failed to find publisher at index '"+i+"', no more publishers.");            } catch (CreateException ce) {                // We could not find this publisher                error("Failed to create configured publisher.");                ce.printStackTrace();            }        }        debug("<initCertificateStore()");    } // initCertificateStore