protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

		String activateString = request.getParameter("activate");

		if (activateString != null && !activateString.trim().isEmpty()) {
			
			Boolean activate = Boolean.valueOf(activateString);

			if (activate != null && activate && !ParkingOrderEmulatorClient.isActive) {
				ParkingOrderEmulatorClient.isActive = true;
				new ParkingOrderEmulatorClient().startEmulation();
			} else {
				ParkingOrderEmulatorClient.isActive = false;
			}
		}

		response.getWriter().write(String.valueOf(ParkingOrderEmulatorClient.isActive));
	}