code: public static PublishRequest createPublishReq(List<PublishElement> list) {
  		if (list == null) {
  			throw new NullPointerException("list is not allowed to be null");
  		}
  
  		PublishRequest ret = createPublishReq();
  		for (PublishElement el : list) {
  			ret.addPublishElement(el);
  		}
  
  		return ret;
  	}
docs: Create a new {@link PublishRequest} that contains the given list of
  {@link PublishElement} instances.
  
  @param list the list of {@link PublishElement} instances that are added
  to the new {@link PublishRequest}
  @return the new {@link PublishRequest}