private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException {
        stream.defaultReadObject();

        /* Reinstantiate transient fields. */
        this.lock = new ReentrantReadWriteLock();
    }
Default implementation of {@link CookieStore}

@since 4.0
httpclient5/src/main/java/org/apache/hc/client5/http/cookie/BasicCookieStore.java