class WbEditingAction {

	public EntityDocument wbEditEntity(String id, String site, String title,
			String newEntity, String data, boolean clear, boolean bot,
			long baserevid, String summary, List<String> tags)
					throws IOException, MediaWikiApiErrorException {

		Validate.notNull(data,
				"Data parameter cannot be null when editing entity data");

		Map<String, String> parameters = new HashMap<>();
		parameters.put("data", data);
		if (clear) {
			parameters.put("clear", "");
		}
		
		JsonNode response = performAPIAction("wbeditentity", id, site, title,
				newEntity, parameters, summary, tags, baserevid, bot);
		return getEntityDocumentFromResponse(response);
	}

	public  WbEditingAction(ApiConnection connection, String siteIri);

}