code: public AlternateOf newAlternateOf(QualifiedName entity1, QualifiedName entity2) {
  	AlternateOf res = of.createAlternateOf();
  	res.setAlternate1(entity1);
  	res.setAlternate2(entity2);
  	return res;
      }
docs: A factory method to create an instance of an alternate {@link AlternateOf}
  @param entity1 an identifier for the first {@link Entity}
  @param entity2 an identifier for the second {@link Entity}
  @return an instance of {@link AlternateOf}