private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
  stream.defaultReadObject();
  stateLock=new Object();
  state=OFFLINE;
  stopRequested=false;
  servedClientCount=0;
  clientHandlerVector=new Vector<>();
  mainThread=null;
  notifCount=0;
  notifInfos=null;
  notifBroadcaster=new NotificationBroadcasterSupport();
  dbgTag=makeDebugTag();
}

private void readObject ( ObjectInputStream stream ) throws IOException , ClassNotFoundException { stream . defaultReadObject ( ) ; stateLock = new Object ( ) ; state = OFFLINE ; stopRequested = false ; servedClientCount = 0 ; clientHandlerVector = new Vector < > ( ) ; mainThread = null ; notifCount = 0 ; notifInfos = null ; notifBroadcaster = new NotificationBroadcasterSupport ( ) ; dbgTag = makeDebugTag ( ) ; }
controls the way the communicatorserver service is deserialized .
