public boolean justSerialized(){
  return serialized.getAndSet(false);
}

public boolean justSerialized ( ) { return serialized . getAndSet ( false ) ; }
this is called on deserialization . you can only call it once to get a meaningful value as it resets the serialized state . in other words , this call is not idempotent .
