protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
try {
Handler handler = Handler.getHandler(req);
String userName = handler.getUserName();
EntrySet c = handler.processPost(new InputStreamReader(req.getInputStream()));
res.setStatus(HttpServletResponse.SC_CREATED);
res.setContentType("application/xml; charset=utf-8");
String s = c.toString();
Writer writer = res.getWriter();
writer.write(s);
writer.close();
} catch (HandlerException he) {
res.sendError(he.getStatus(), he.getMessage());