Custom ConnectionProvider with DataDirect driver not working in Hibernate 5.4

I’ve debugged ConnectionProviderDelegate, but the flow doesn’t come to configure() method at all.
Because of that the custom implementation hasn’t been honored.

I’ve debugged the code, but the control didn’t come to the method configure(). The delegate initialization happened with the constructor with delegate.

Because of it the custom implementation has not been honored. Facing the same issue as shared above.
P.S: Re-commenting as my comment got hidden and review seems pending still.

It should be called though. If you look into org.hibernate.service.internal.AbstractServiceRegistryImpl#getService, which is the method that should be called within the Hibernate internals to receive the ConnectionProvider, you can see that it calls out to org.hibernate.service.internal.AbstractServiceRegistryImpl#initializeService which then calls the configureService method. Hope that helps you to debug this further.