@Override
	public Response handle(JsonElement data) {
		Response res;
		
		Location loc = GsonFactory.getGsonInstance().fromJson(data, Location.class);
		
		
		if(locHome.update(loc)) {
			res = new Response(Status.ok, null, null);
			Log.getLogger().finer("location updated: " + loc);
			
		} else {
			res = new Response(Status.failed, "could not update to database", null);
			Log.getLogger().fine("location could not be updated to the database");
		}
		
		return res;
	}