@Override
	public Response handle(JsonElement data) {
		Response res;
		Location loc;
		
		Measurement currentMeasurement = GsonFactory.getGsonInstance().fromJson(data, Measurement.class);
		log.finer("got measurement: " + data);
		
		loc = LocatorHome.getLocator().locate(currentMeasurement);
		
			
		if(loc == null) {
			log.fine("no matching location found");
			res = new Response(Status.failed, "no matching location found", null);
			
		} else {
			res = new Response(Status.ok, null, loc);
			log.finer("location found: " + loc + " accuracy: "+loc.getAccuracy());
		}
		
		
		return res;
	}