}
updateOutputAction("Matches");
if (mapToOld) {
ret = mapToOld(doc, factory.createProbeMatches(pmt));
} else {
ret = new JAXBSource(context, factory.createProbeMatches(pmt));
}
} else if (obj instanceof ResolveType) {
ResolveMatchesType rmt = handleResolve((ResolveType)obj);
if (rmt == null) {
return null;
}
updateOutputAction("Matches");
if (mapToOld) {
ret = mapToOld(doc, factory.createResolveMatches(rmt));
} else {
ret = new JAXBSource(context, factory.createResolveMatches(rmt));
}
} else if (obj instanceof HelloType) {
//check if it's a DiscoveryProxy
HelloType h = (HelloType)obj;
if (h.getTypes().contains(WSDiscoveryClient.SERVICE_QNAME)