Since NXP-15949 we shouldn't lookup the jndi for datasource in hibernate but instead request the nuxeo's datasource registry.
NXP-15949 Wrong JNDI write access in static war deployment