Merge branch 'stable-3.0'

* stable-3.0:
  Implement the MessageOfTheDay functionality completely in the plugin
  Upgrade bazlets to latest stable-3.0 to build with 3.0.7 API
  Upgrade bazlets to latest stable-2.16 to build with 2.16.16 API

GetMessage: Adapt apply method return type to Response.

Change-Id: I12e57d0be0cfd73ab0ffbb78577109637456519f
diff --git a/WORKSPACE b/WORKSPACE
index 5ac18dc..304fd6d 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -3,7 +3,7 @@
 load("//:bazlets.bzl", "load_bazlets")
 
 load_bazlets(
-    commit = "96f691ebbf4ef1c46b798e871ed5acd9d844651c",
+    commit = "fbe2b2fd07c95d752dced6b8624c9d5a08e8c6c6",
     #local_path = "/home/<user>/projects/bazlets",
 )
 
diff --git a/src/main/java/com/googlesource/gerrit/plugins/messageoftheday/GetMessage.java b/src/main/java/com/googlesource/gerrit/plugins/messageoftheday/GetMessage.java
index c0181a5..85cb1b1 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/messageoftheday/GetMessage.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/messageoftheday/GetMessage.java
@@ -19,6 +19,7 @@
 import com.google.common.base.Strings;
 import com.google.gerrit.extensions.annotations.PluginData;
 import com.google.gerrit.extensions.annotations.PluginName;
+import com.google.gerrit.extensions.restapi.Response;
 import com.google.gerrit.extensions.restapi.RestReadView;
 import com.google.gerrit.server.config.ConfigResource;
 import com.google.gerrit.server.config.SitePaths;
@@ -61,7 +62,7 @@
   }
 
   @Override
-  public MessageOfTheDayInfo apply(ConfigResource rsrc) {
+  public Response<MessageOfTheDayInfo> apply(ConfigResource rsrc) {
     MessageOfTheDayInfo motd = new MessageOfTheDayInfo();
     cfg = new FileBasedConfig(cfgFile, FS.DETECTED);
     try {
@@ -105,7 +106,7 @@
 
     motd.redisplay = getRedisplay();
 
-    return motd;
+    return Response.ok(motd);
   }
 
   private Date getRedisplay() {