}
DiscoveryClient client = new DiscoveryClient(
ConfigHolder.getInstance().getClientConfigurationContext(), proxy.getUrl());
if (proxy.getPolicy() != null) {
client.engageModule("rampart");
client.setProperty(RampartMessageData.KEY_RAMPART_POLICY,
getPolicy(proxy.getPolicy(), registry));
}
TargetService[] services = client.probe(types, scopes, pd.getRule());
client.cleanup();