// got a hit!
WMSServiceImpl wms = (WMSServiceImpl) handle;
return wms.getConnectionParams();
}
else if (handle instanceof WMSGeoResourceImpl ){
WMSGeoResourceImpl layer = (WMSGeoResourceImpl) handle;
WMSServiceImpl wms;
try {
wms = layer.service( new NullProgressMonitor());
return wms.getConnectionParams();
} catch (IOException e) {
checkedURL( layer.getIdentifier() );
}
}
else if( handle.canResolve( WebMapServer.class )){
// must be some kind of handle from a search!
return createParams( handle.getIdentifier() );