docs: public EntityDocument wbEditEntity(String id, String site, String title,
  			String newEntity, String data, boolean clear, boolean bot,
  			long baserevid, String summary) throws IOException,
  			MediaWikiApiErrorException {
  
  		Validate.notNull(data,
  				"Data parameter cannot be null when editing entity data");
  
  		Map<String, String> parameters = new HashMap<String, String>();
  		parameters.put("data", data);
  		if (clear) {
  			parameters.put("clear", "");
  		}
  		
  		JsonNode response = performAPIAction("wbeditentity", id, site, title,
  				newEntity, parameters, summary, baserevid, bot);
  		return getEntityDocumentFromResponse(response);
  	}