Merge branch 'stable-3.3'

* branch 'stable-3.3':
  Upgrade bazlets to latest stable-3.1 to build with 3.1.12 API
  Use username from notedb in serviceuser.db
  Upgrade bazlets to latest stable-3.1 to build with 3.1.11 API

Change-Id: Idd35ba419e2d0e873092cb664918595ed8f7e350
diff --git a/src/main/java/com/googlesource/gerrit/plugins/serviceuser/CreateServiceUser.java b/src/main/java/com/googlesource/gerrit/plugins/serviceuser/CreateServiceUser.java
index d7cdff8..c3b5add 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/serviceuser/CreateServiceUser.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/serviceuser/CreateServiceUser.java
@@ -177,11 +177,11 @@
       update.load(md);
 
       Config db = update.getConfig();
-      db.setInt(USER, username, KEY_CREATOR_ID, creatorId.get());
+      db.setInt(USER, response.username, KEY_CREATOR_ID, creatorId.get());
       if (creator != null) {
-        db.setString(USER, username, KEY_CREATED_BY, creator);
+        db.setString(USER, response.username, KEY_CREATED_BY, creator);
       }
-      db.setString(USER, username, KEY_CREATED_AT, creationDate);
+      db.setString(USER, response.username, KEY_CREATED_AT, creationDate);
 
       md.setMessage("Create service user '" + username + "'\n");
       update.commit(md);