code: public WasDerivedFrom newWasDerivedFrom(QualifiedName id, 
                                              QualifiedName aid1,
  					    QualifiedName aid2, 
  					    QualifiedName aid,
  					    QualifiedName did1, 
  					    QualifiedName did2,
  					    Collection<Attribute> attributes) {
  	WasDerivedFrom res = of.createWasDerivedFrom();
  	res.setId(id);
  	res.setUsedEntity(aid2);
  	res.setGeneratedEntity(aid1);
  	res.setActivity(aid);
  	res.setGeneration(did1);
  	res.setUsage(did2);
          setAttributes(res, attributes);
  	return res;
      }
docs: /*
  (non-Javadoc)
  @see org.openprovenance.prov.model.ModelConstructor#newWasDerivedFrom(org.openprovenance.prov.model.QualifiedName, org.openprovenance.prov.model.QualifiedName, org.openprovenance.prov.model.QualifiedName, org.openprovenance.prov.model.QualifiedName, org.openprovenance.prov.model.QualifiedName, org.openprovenance.prov.model.QualifiedName, java.util.Collection)