BoolQueryBuilder compatibility for the new java API

Opensearch 2.9.0:

Describe the issue:
Currently I build my queries using the BoolQueryBuilder, available in org.opensearch.index.query.BoolQueryBuilder.

I’m trying moving to new Java API, but I do not found a way to keep using BoolQueryBuilder, all apis seems to expect BoolQuery from org.opensearch.client.opensearch._types.query_dsl.BoolQuery.

There are any way to keep the compatibility ?