}
static public Map<String,Serializable> createParams( IResolve handle ){
if(handle instanceof WWService) {
// got a hit!
WWService service = (WWService) handle;
return service.getConnectionParams();
}
else if (handle instanceof WWGeoResource ){
WWGeoResource geoResource = (WWGeoResource) handle;
WWService service;
try {
service = (WWService) geoResource.service(new NullProgressMonitor());
return service.getConnectionParams();
} catch (IOException e) {
checkedURL(geoResource.getIdentifier());
}
}
else if(handle.canResolve(LayerSet.class)){