Why is method DefaultLoadEventListener.loadFromSecondLevelCache private in hibernate 5x?

In Hibernate 3x, we had overridden DefaultLoadEventListener.loadFromSecondLevelCache to do some additional internal secuirty checks. Where as in hibernate 5x, the method has been made private and hence restricted access. I’m cuirous to know why was it made private and what is the workaround here if I want to call DefaultLoadEventListener.loadFromSecondLevelCache ?

Since it is an internal class, someone must have felt it’s better to make certain things private. You can go through the Git history to find the commit that changed this. Maybe that will tell you why this was changed, but my guess is, that this was just done for clean coding practices and for no other particular reason. So in short, don’t depend on internal code.