@SuppressWarnings("unchecked")
	@Override
	public void onResponseReceived(Request request, Response response) {
		if( response.getStatusCode() == HTTP_OK )
		{
			try {
				JSONObject jsonObject = JSONParser.parseStrict(response.getText()).isObject();
				if( jsonObject != null )
				{
					callback.onSuccess((T)deserialize(jsonObject.get("result")));
				}
			} catch (IllegalArgumentException e) {
				callback.onFailure(new JSONRPCEmptyResponseException());
			}
		} else {
			// Handle all other statusCodes the same way
			callback.onFailure(new JSONRPCEmptyResponseException());
		}
	}