fix: add a workaround for hibernate4 eventcache throws