replace org.hibernate.cfg.Environment in CodeGenXMLFactory