private String getLanguage(HashMap<String, Object> map) {
		@SuppressWarnings("unchecked")
		ArrayList<String> langs = (ArrayList<String>) map.get("primaryLanguages");
		if (langs == null || langs.isEmpty()) return null;
		if (langs.size() > 1)
			System.err.println("Multiple primary languages " + map);
		return langs.get(0);
	}