public static void doLookup(ServiceItem[] srvcItems,
ServiceTemplate[] templates,
ServiceRegistrar proxy) throws Exception
{
Object serviceObj = null;
ServiceMatches matches = null;
for (int i=0; i<templates.length; i++) {
serviceObj = proxy.lookup(templates[i]);
if (!srvcItems[i].service.equals(serviceObj)) {
throw new TestException("srvcItems["+i+
"] != serviceObj returned by lookup()");