private Document _checkResponse(final String response) {
		final DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
		try {
			// Get and parse into a document
			final DocumentBuilder db = dbf.newDocumentBuilder();
			final Document doc = db.parse(new InputSource(new StringReader(response)));

			// Navigate to the status code and read it.
			final Element root = doc.getDocumentElement();
			final NodeList nl = root.getElementsByTagName("RESPONSE");
			String status = "ERROR";
			if (nl != null && nl.getLength() > 0) {
				status = nl.item(0).getAttributes().getNamedItem("STATUS").getNodeValue();
			}

			// Handle error codes accordingly
			if (status.equals("ERROR"))
				throw new GracenoteException("API response error.");
			if (status.equals("NO_MATCH"))
				throw new GracenoteException("No match response.");
			if (!status.equals("OK"))
				throw new GracenoteException("Non-OK API response.");

			return doc;
		} catch (final Exception e) {
			e.printStackTrace();
		}

		return null;
	}