code: public WasAttributedTo newWasAttributedTo(QualifiedName id, 
                                                QualifiedName entity,
  					      QualifiedName agent,
  					      Collection<Attribute> attributes) {
  	WasAttributedTo res = of.createWasAttributedTo();
  	res.setId(id);
  	res.setEntity(entity);
  	res.setAgent(agent);
          setAttributes(res, attributes);
  	return res;
      }
docs: /*
  (non-Javadoc)
  @see org.openprovenance.prov.model.ModelConstructor#newWasAttributedTo(org.openprovenance.prov.model.QualifiedName, org.openprovenance.prov.model.QualifiedName, org.openprovenance.prov.model.QualifiedName, java.util.Collection)