*/
@Deprecated
public static Collection<IService> constructServices( IProgressMonitor monitor, Map<String, Serializable> params, Collection<URL> urls ) {
// use the parameters/url to acquire a set of services
//
IServiceFactory sFactory = CatalogPlugin.getDefault().getServiceFactory();
monitor.setTaskName(Messages.ConnectionState_task);
Collection<IService> services = new HashSet<IService>();
if (urls != null && !urls.isEmpty()) {
for( URL url : urls ) {
Collection<IService> searchResult = searchLocalCatalog(url, monitor);
if (searchResult.isEmpty()) {
List<IService> created = sFactory.createService(url);
services.addAll(created);
} else {
services.addAll(searchResult);
}
}
}
if( params!=null && !params.isEmpty()){
Set<IService> results = new HashSet<IService>(sFactory.createService(params));
for( IService service : results ) {
Collection<IService> searchResult = searchLocalCatalog(service.getIdentifier(), monitor);
if (searchResult.isEmpty() ) {
services.add(service);
} else {