@@ -0,0 +1,1241 @@
+package com.google.sps.servlets;%0A%0Aimport com.google.appengine.api.users.UserServiceFactory;%0Aimport com.google.sps.data.EventVolunteering;%0Aimport com.google.sps.utilities.CommonUtils;%0Aimport com.google.sps.utilities.SpannerTasks;%0Aimport java.io.IOException;%0Aimport java.util.Set;%0Aimport javax.servlet.annotation.WebServlet;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0A@WebServlet(%22/user-events%22)%0Apublic class EventsUserProfileServlet extends HttpServlet %7B%0A  private static final String EVENT_TYPE = %22event-type%22;%0A  private static final String VOLUNTEERING = %22volunteering%22;%0A  private static final String email =%0A      UserServiceFactory.getUserService().getCurrentUser().getEmail();%0A%0A  /** Gets the current user's corresponding events in DB */%0A  @Override%0A  public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException %7B%0A    String eventType = request.getParameter(EVENT_TYPE);%0A    if (eventType.equals(VOLUNTEERING)) %7B%0A        Set%3CEventVolunteering%3E eventsVolunteering = SpannerTasks.getEventsVolunteeringByEmail(email);%0A        response.getWriter().println(CommonUtils.convertToJson(eventsVolunteering));%0A    %7D%0A  %7D%0A%7D%0A

Add error checking tests.