code: public static PublishNotify createPublishNotify(Identifier i1, Identifier i2,
  			Collection<Document> mdlist) {
  
  		if (mdlist == null) {
  			throw new NullPointerException("mdlist is null");
  		}
  
  		PublishNotify pn = createPublishNotify();
  		fillMetadataHolder(pn, i1, i2, mdlist);
  		return pn;
  	}
docs: Create a new {@link PublishNotify} instance that is used to publish
  a list of metadata on a link between two {@link Identifier} instances.
  The {@link MetadataLifetime} of the new metadata is set to
  {@link MetadataLifetime#session}.
  
  @param i1 the first {@link Identifier} of the link
  @param i2 the second {@link Identifier} of the link
  @param mdlist a list of metadata objects
  @return the new {@link PublishNotify} instance