code: public HadMember doAction(HadMember o) {
          List<QualifiedName> qq=new LinkedList<QualifiedName>();
          if (o.getEntity()!=null) {
              for (QualifiedName eid:o.getEntity()) {
                  qq.add(eid);
              }
          }
          return c.newHadMember(o.getCollection(), qq);
          
         /*remember, scruffy hadmember in provn, has a null in get(0)!!
  	return deprecated.convertHadMember(deprecated.doAction((o.getCollection()==null) ? null: 	                                    
  	                                      o.getCollection().getRef()),
  	                          ((o.getEntity()==null || (o.getEntity().isEmpty())) ?
  	                        	  deprecated.doAction(null) :
  	                        	  deprecated.doAction((o.getEntity().get(0)==null) ? 
  	                        		     null :
  	                        	             o.getEntity().get(0).getRef()))); */
      }
docs: note: lots of test to support scruffy provenance