} catch (NotFoundException e) { response.sendError(HttpServletResponse.SC_NOT_FOUND, e.getMessage());
	protected void doPost(HttpServletRequest req, HttpServletResponse response) throws ServletException, IOException	{			HttpServletRequest request = null;		//For POST request, If we are logging the requests we must wrap HttpServletRequest in HttpServletRequestWrapper		//otherwise we cannot access the POST parameters from the content body of the request!!! - deliriumsky		Descriptor descriptor = Descriptor.getDescriptorSingleton();		if(descriptor != null)		{			if(descriptor.allowRequestLogging())			{				request = new HttpServletRequestWrapper(req, formEncoding);			}			else			{				request = req;			}		}		else		{			request = req;		}				//first, adjust the path		String path = request.getPathInfo();		if(path == null)		{			path = "";		}		else		{            path = adjustPath(request);		}				//second, perform descriptor actions    	if(descriptor != null)    	{    		//logs the request if specified in the descriptor    		descriptor.doLogRequestInReplayLog(request);    		    		//map's the path if a mapping is specified in the descriptor    		path = descriptor.mapPath(path);    	}		    	//third, authenticate the user		User user = authenticate(request,response);		if (user == null) {                        // You now get a challenge if there is no user			//response.sendError(HttpServletResponse.SC_FORBIDDEN,			//		"Permission denied: unknown user " + "or password");			return;		}				//fouth, process the request		DBBroker broker = null;		try {			broker = pool.get(user);			//Route the request			if(path.indexOf(SOAPServer.WEBSERVICE_MODULE_EXTENSION) > -1)			{				//SOAP Server				srvSOAP.doPost(broker, request, response, path);			}			else			{				//REST Server				srvREST.doPost(broker, request, response, path);			}		} catch (PermissionDeniedException e) {			response			.sendError(HttpServletResponse.SC_FORBIDDEN, e.getMessage());		} catch (EXistException e) {			response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e					.getMessage());		} catch (BadRequestException e) {			response.sendError(HttpServletResponse.SC_BAD_REQUEST, e.getMessage());		} finally {			pool.release(broker);		}	}