code: private EntityDocument parseJsonResponse(JsonNode entityNode) throws IOException {
  		return mapper.readerFor(EntityDocumentImpl.class)
  				.with(DeserializationFeature.ACCEPT_EMPTY_ARRAY_AS_NULL_OBJECT)
  				.readValue(entityNode);
  	}
docs: Parse a JSON response to extract an entity document.
  <p>
  TODO This method currently contains code to work around Wikibase issue
  https://phabricator.wikimedia.org/T73349. This should be removed once the
  issue is fixed.
  
  @param entityNode
  the JSON node that should contain the entity document data
  @return the entity document, or null if there were unrecoverable errors
  @throws IOException