Adapting the example to recent uImpala changes (specific implementations extracted)