package com.google.sps.servlets;

import java.io.IOException;
import com.google.gson.JsonParser;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.sps.data.Lesson;
import com.google.sps.service.DatabaseService;
import com.google.sps.data.RequestParser;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/lesson")
public class LessonHandlerServlet extends HttpServlet {

    @Override
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {
        Lesson lesson = Lesson.deserializeJson(RequestParser.parseStringFromRequest(request));
        DatabaseService.save(lesson.getLessonEntity());
        response.setStatus(HttpServletResponse.SC_OK);
    }
}
@@ -59,114 +59,8 @@
 on;%0A
-import com.google.gson.JsonParser;%0Aimport com.google.gson.JsonElement;%0Aimport com.google.gson.JsonObject;%0A
 impo

Remove unnecessary imports