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