private void readObject(java.io.ObjectInputStream stream) throws IOException, ClassNotFoundException {
  namespace=stream.readUTF();
  entityContextState=(EntityContextState)stream.readObject();
  env=EnvironmentAccessor.get();
  Objects.requireNonNull(env,"Could not get environment");
  boolean allowGarbageCollection=stream.readBoolean();
  init(allowGarbageCollection);
}

private void readObject ( java . io . ObjectInputStream stream ) throws IOException , ClassNotFoundException { namespace = stream . readUTF ( ) ; entityContextState = ( EntityContextState ) stream . readObject ( ) ; env = EnvironmentAccessor . get ( ) ; Objects . requireNonNull ( env , "Could not get environment" ) ; boolean allowGarbageCollection = stream . readBoolean ( ) ; init ( allowGarbageCollection ) ; }
the entity context does not write it ' s contents to the stream . entities are transmitted based on their relationships to each other .
