createPreparedQuery factory method

The createPreparedQuery factory method is not used by getQuery. Changing this allow the developper to extend the PreparedQuery by overriding the factory method.