replace org.hibernate.cfg.Environment in ConfigurationFactory