// Inherited.
protected Iterator<WebMessage> getLoop(TemplateModel model) throws TemplateException {
WebMethod webMethod = this.webMethod;
WsdlInfo wsdlInfo = this.wsdl;
if ((webMethod == null) && (wsdlInfo == null)) {
throw new MissingParameterException("Either a webMethod or a wsdl must be specified to iterate over web messages.", "webMethod");
}
Collection<WebMessage> messages;
if (webMethod != null) {
messages = webMethod.getMessages();