code: public WasEndedBy newWasEndedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger, QualifiedName ender) {
        	WasEndedBy res=newWasEndedBy(id,activity,trigger);	
        	res.setEnder(ender);
        	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
  @param ender an optional identifier for the <a href="http://www.w3.org/TR/prov-dm/#end.ender">activity</a> that generated the (possibly unspecified) entity
  @return an instance of {@link WasEndedBy}