OObjectDatabasePool deprecated

Hi,
I read in the OObjectDatabasePool documentation that it’s “Deprecated
Please use com.orientechnologies.orient.core.db.OPartitionedDatabasePool instead,” only it’s not clear to me how I would get an OObjectDatabaseTx session out of a OPartitionedDatabasePool so I can do objectQuery etc.
Am I missing something, or is this not possible?

Regards,
Sander Postma