// got a hit!
MySQLServiceImpl mysqlService = (MySQLServiceImpl) context;
return mysqlService.getConnectionParams();
}
else if (resolve instanceof MySQLGeoResource ){
MySQLGeoResource layer = (MySQLGeoResource) resolve;
MySQLServiceImpl mysql;
try {
mysql = (MySQLServiceImpl) layer.parent( null );
return mysql.getConnectionParams();
} catch (IOException e) {
toCapabilitiesURL( layer.getIdentifier() );
}
}
}
return createParams( url );
}