See https://discourse.hibernate.org/t/beta8-getallclassmetadata-causes-cancellationexception-during-startup/4244