public SessionClient() {
        try {
            String url = "//" + SESSION_SERVER_MACHINE_NAME + "/"
                    + SESSION_SERVER_SERVICE_NAME;
            //sessionServer = (SessionServer) Naming.lookup(url);

            Registry registry = LocateRegistry.getRegistry("localhost", 2099);
            sessionServer = (SessionServer) registry.lookup("sample/sessionServer");
        } catch (RemoteException exc) {
        } catch (NotBoundException exc) {
        //} catch (MalformedURLException exc) {
        } catch (ClassCastException exc) {
        }
    }