@Override
	public Response handle(JsonElement data) {
		
		Response res;
		
		List<Location> locations = locHome.getAll();
		
		if(locations.contains(null)) {
			res = new Response(Status.failed, "could not fetch all locations", null);
			Log.getLogger().fine("could not fetch all locations");
		} else {
			res = new Response(Status.ok, null, locations);
			Log.getLogger().finer("fetched "+ locations.size()+ " locations");
		}
		
		return res;
		
	}