Correction of example to support sonar-4.1 and avoir leak of abstraction