}
static public Map<String,Serializable> createParams( IResolve handle ){
if( handle instanceof WMSServiceImpl) {
// 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 )){