code: public void addMessages(List<CmsMessages> messages) {
  
          if (messages == null) {
              throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_MULTIMSG_EMPTY_LIST_0));
          }
  
          Iterator<CmsMessages> i = messages.iterator();
          while (i.hasNext()) {
              addMessages(i.next());
          }
      }
docs: Adds a list a messages instances to this multi message bundle.<p>
  
  @param messages the messages instance to add