I have refactored the commit to fix this.

I have deferred until the actual creation of the PooledConnectionFactoryService to pick a connector instead (see  https://github.com/jmesnil/wildfly/commit/7c8d16ea2494128a34f66cf3f795a829a12938f2#diff-67b7923c3fce092302c61f5d5c80d967R328)