private void addSensorEx(){
		Sensor input = new Sensor();
		input.setUnity("m");
		input.setAddDate(new Date(System.currentTimeMillis()));
		input.setLowBattery(false);
		input.setStatementFrequency(1222);
		input.setSamplingFrequency(1000);
		input.setGpsLocation(-0.127512, 51.507222);
		input.setName("Sensor_Arrow");
		input.setSensorType(SensorType.ARROW);
		try {
			ClientConfig clientConfig = new DefaultClientConfig();
			clientConfig.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE);
			Client client = Client.create(clientConfig);
						
			WebResource webResource = client.resource(URL_SERVEUR);
			ClientResponse response = webResource.path("rest").path("sensor").path("post").accept("application/json").type("application/json").post(ClientResponse.class, input);

			if (response.getStatus() != Response.Status.CREATED.getStatusCode()) {
				throw new RuntimeException("Failed : HTTP error code : " + response.getStatus());
			}
			String output = response.getEntity(String.class);
			System.out.println("Sensor : " + output);

		} catch (Exception e) {

			e.printStackTrace();

		}
	}