Ah, this one is another (missed?) direct usage of Thread.currentThread().getContextClassLoader() -> https://hibernate.atlassian.net/browse/HHH-9825