code: public void writeExternal(final ObjectOutput stream) throws IOException {
          stream.writeObject( this.dialects );
          stream.writeObject( this.lineMappings );
      }
docs: Handles the write serialization of the PackageCompilationData. Patterns in Rules may reference generated data which cannot be serialized by
  default methods. The PackageCompilationData holds a reference to the generated bytecode. The generated bytecode must be restored before any Rules.