private void getMusicbrainzIds(List<MusicbrainzAlbum> primaryAlbumMidList) {
		for (MusicbrainzAlbum iterator : primaryAlbumMidList) {
			GenericUrl url = new GenericUrl(
					"https://www.googleapis.com/freebase/v1/topic"
							+ iterator.getMid());
			url.put("filter", "/common/topic/topic_equivalent_webpage");
			url.put("limit", "9001");
			url.put("key", properties.get("API_KEY"));
			JSONObject response = makeHttpRequest(url);
			JSONObject responseProperty = (JSONObject) response.get("property");

			// sometimes Freebase does not have any information to a mid
			if (responseProperty == null) {
				continue;
			}
			JSONObject responsePropertyValues = (JSONObject) responseProperty
					.get("/common/topic/topic_equivalent_webpage");
			JSONArray pages = (JSONArray) responsePropertyValues.get("values");

			String resultUrl = null;
			for (Object page : pages) {
				GenericUrl pageUrl = new GenericUrl(JsonPath.read(page,
						"$.value").toString());
				if (pageUrl.toString().contains("http://musicbrainz.org")) {
					resultUrl = pageUrl.toString();
					break;
				}
			}
			if (resultUrl != null) {
				String[] result = resultUrl.split("group/");
				iterator.setMbid(result[1]);
			}
		}
	}