ICertificateStoreSessionLocalHome certificatestoresessionhome = (ICertificateStoreSessionLocalHome) lookup("java:comp/env/ejb/CertificateStoreSessionLocal",ICertificateStoreSessionLocalHome.class); certificatestoresession = certificatestoresessionhome.create();
ICertificateStoreSessionLocalHome home = (ICertificateStoreSessionLocalHome) getLocator().getLocalHome(ICertificateStoreSessionLocalHome.COMP_NAME); certificatestoresession = home.create();
    private ICertificateStoreSessionLocal getCertificateStoreSession() {        if(certificatestoresession == null){            try{                ICertificateStoreSessionLocalHome certificatestoresessionhome = (ICertificateStoreSessionLocalHome) lookup("java:comp/env/ejb/CertificateStoreSessionLocal",ICertificateStoreSessionLocalHome.class);                certificatestoresession = certificatestoresessionhome.create();            }catch(Exception e){                throw new EJBException(e);            }        }        return certificatestoresession;    } //getCertificateStoreSession