resp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
try { resp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } catch (Exception ex) {}
	public void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {				if (!isRequestOnAllowedPort(req)) {			resp.sendError(HttpServletResponse.SC_NOT_ACCEPTABLE);			return;		}				DavContext ctxt = new DavContext(req, resp);		try {			Account authUser = basicAuthRequest(req, resp, true);			if (authUser == null)				return;			ctxt.setOperationContext(authUser);		} catch (ServiceException e) {			ZimbraLog.dav.error("error getting authenticated user", e);			resp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);			return;		}				DavMethod method = sMethods.get(req.getMethod());		if (method == null) {			setAllowHeader(resp);			resp.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED);			return;		}				try {			method.handle(ctxt);		} catch (DavException e) {			if (e.getCause() instanceof MailServiceException.NoSuchItemException ||					e.getStatus() == HttpServletResponse.SC_NOT_FOUND)				ZimbraLog.dav.debug(ctxt.getUri()+" not found");			else				ZimbraLog.dav.debug("error handling method "+method.getName(), e);						if (e.isStatusSet())				resp.sendError(e.getStatus());			else				resp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);		} catch (Exception e) {			ZimbraLog.dav.debug("error handling method "+method.getName(), e);			resp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);		}	}