for (int j = i + 1; j < eventVector.size(); j++) {
ServiceEvent oevnt = (ServiceEvent)eventVector.elementAt(j);
if (evnt.getServiceID().equals(oevnt.getServiceID()))
continue outer;
}
ServiceItem item = evnt.getServiceItem();
tmpl.serviceID = evnt.getServiceID();
ServiceRegistrar proxy = (ServiceRegistrar)evnt.getSource();
proxy = (ServiceRegistrar)
QAConfig.getConfig().prepare("test.reggiePreparer",
proxy);
ServiceMatches matches;
matches = proxy.lookup(tmpl, 1);
if (item == null) {
if (matches.items.length != 0)
throw new TestException(
"verifyEventItems: event item is null, lookup returns non-null");
} else {
if (matches.items.length == 0)
throw new TestException(
"verifyEventItems: event item is non-null, lookup returns null");
ServiceItem litem = matches.items[0];
if (!item.service.equals(litem.service))
throw new TestException(
"verifyEventItems: event item service does not equal lookup value");
if (!attrsEqual(item.attributeSets, litem.attributeSets))
throw new TestException(