else if (resolve instanceof PostgisSchemaFolder) {
PostgisSchemaFolder postgisFolder = (PostgisSchemaFolder) resolve;
return postgisFolder.getService(new NullProgressMonitor()).getConnectionParams();
}
else if (resolve instanceof PostgisGeoResource2 ){
PostgisGeoResource2 layer = (PostgisGeoResource2) resolve;
PostgisService2 postgis;
try {
postgis = (PostgisService2) layer.parent( null );
return postgis.getConnectionParams();
} catch (IOException e) {
toCapabilitiesURL( layer.getIdentifier() );
}
}
}
return createParams( url );
}