code: public ItemDocument createItemDocument(ItemDocument itemDocument,
  			String summary) throws IOException, MediaWikiApiErrorException {
  		String data = JsonSerializer.getJsonString(itemDocument);
  		return (ItemDocument) this.wbEditingAction.wbEditEntity(null, null,
  				null, "item", data, false, this.editAsBot, 0, summary);
  	}
docs: Creates a new item document with the summary message as provided.
  <p>
  The item document that is given as a parameter must use a local item id,
  such as {@link ItemIdValue#NULL}, and its revision id must be 0. The
  newly created document is returned. It will contain the new id. Note that
  the site IRI used in this ID is not part of the API response; the site
  IRI given when constructing this object is used in this place.
  <p>
  Statements in the given data must have empty statement IDs.
  
  @param itemDocument
  the document that contains the data to be written
  @param summary
  additional summary message for the edit, or null to omit this
  @return newly created item document, or null if there was an error
  @throws IOException
  if there was an IO problem, such as missing network
  connection
  @throws MediaWikiApiErrorException