Separate the POST and GET code for AdminServlet