obj = ctx.lookup("KeyRecoverySession"); IKeyRecoverySessionHome keyrechome = (IKeyRecoverySessionHome) javax.rmi.PortableRemoteObject.narrow(obj, IKeyRecoverySessionHome.class); keyrecsession = keyrechome.create();  obj = ctx.lookup("RaAdminSession"); IRaAdminSessionHome raadminsessionhome = (IRaAdminSessionHome) javax.rmi.PortableRemoteObject.narrow(obj, IRaAdminSessionHome.class); raadminsession = raadminsessionhome.create();
    protected void setUp() throws Exception {        log.debug(">setUp()");        ctx = getInitialContext();        Object obj = ctx.lookup("AuthenticationSession");        IAuthenticationSessionHome home = (IAuthenticationSessionHome) javax.rmi.PortableRemoteObject.narrow(obj, IAuthenticationSessionHome.class);        remote = home.create();        obj = ctx.lookup("UserAdminSession");        IUserAdminSessionHome userhome = (IUserAdminSessionHome) javax.rmi.PortableRemoteObject.narrow(obj, IUserAdminSessionHome.class);        usersession = userhome.create();        admin = new Admin(Admin.TYPE_INTERNALUSER);        log.debug("<setUp()");    }