package com.google.sps;

import com.google.appengine.api.datastore.DatastoreServiceConfig;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class OnStart implements ServletContextListener {
  @Override
  public void contextInitialized(ServletContextEvent sce) {
    System.setProperty(
        DatastoreServiceConfig.DATASTORE_EMPTY_LIST_SUPPORT, Boolean.TRUE.toString());
  }
}

@@ -415,11 +415,142 @@
 ());%0A  %7D
+%0A%0A  @Override%0A  public void contextDestroyed(ServletContextEvent sce) %7B%0A    ServletContextListener.super.contextDestroyed(sce);%0A  %7D
 %0A%7D%0A

Add destroy context listener.