private void ensureInitialized() {
        if (!initialized) {
            throw new IllegalStateException("Please initialize the client first");
        }
    }
Base class for implementing a thread-safe ClickHouse client. It uses
{@link ReadWriteLock} to manage access to underlying connection.
clickhouse-client/src/main/java/com/clickhouse/client/AbstractClient.java