Adapt SNAPSHOT plugin api example to the 3.1 version
Adapt SNAPSHOT plugin api example to the 3.1 version

Change-Id: I3be3ff0eeafd746800f11e231dade46149bd424b

GerritCodeReview/plugins_reviewers,GerritCodeReview/plugins_reviewers,GerritCodeReview/plugins_reviewers