static String toString(DataSource ds) { if (ds instanceof AbstractPoolBackedDataSource) return ((AbstractPoolBackedDataSource) ds).toString(true); else return ds.toString(); }