Hibernate ORM is going to refuse from org.hibernate.cfg.Configuration, so Hibernate Shards should do this too.