code: public WasEndedBy newWasEndedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger) {
  	WasEndedBy res = of.createWasEndedBy();
  	res.setId(id);
  	res.setActivity(activity);
  	res.setTrigger(trigger);
  	return res;
      }
docs: A factory method to create an instance of an end {@link WasEndedBy}
  @param id
  @param activity an identifier for the ended <a href="http://www.w3.org/TR/prov-dm/#end.activity">activity</a>
  @param trigger an optional identifier for the <a href="http://www.w3.org/TR/prov-dm/#end.trigger">entity triggering</a> the activity ending
  @return an instance of {@link WasEndedBy}