@Override
     public void run() {
        while(true)
        {
            try {
                ObjectInputStream is = new ObjectInputStream(clientSocketSN.getInputStream()); 
                                
                while (true) 
                {
                    if (parseObject(is.readObject()) == 1)
                        break;
                }
                
                is.close();                
                clientSocketSN.close();
                
            } catch (IOException e) {
                if (!(e instanceof java.io.EOFException))
                    e.printStackTrace();
            } catch (ClassNotFoundException ex) {
                Logger.getLogger(LoadBalancerThread.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
     }