SONARJAVA-465 updated code sample