Use this to wrap HikariDataSources in java and spring.

search on HikariDataSource.