WFLY-1463 add support for creating entity manager factory in two phases