private void addDataEx(){
		/*
		 SensorDao dao = new SensorDao();
		Sensor sensor = dao.getOne(1);
		*/
		Sensor sensor = new Sensor();
		sensor.setAddDate(new Date(System.currentTimeMillis()));
		sensor.setUnity("s");
		sensor.setStatementFrequency(1222);
		sensor.setName("Sensor_Test");
		sensor.setSensorType(SensorType.GRAPH);
		sensor.setGpsLocation(-0.127512, 51.507222);
		Data input = new Data();
		input.setDate(System.currentTimeMillis());
		input.setIsOnPhone(false);
		input.setValue("11");
		input.setSensor(sensor);
		
		input.setSensorId(1);
		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("data").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("Data : " + output);

		} catch (Exception e) {

			e.printStackTrace();

		}
	}