private StatusReporter findStatusReporter(PooledDataSource pds, Document doc) { if (pds.getClass() == ComboPooledDataSource.class) return new CpdsStatusReporter((ComboPooledDataSource) pds, doc); else if (pds.getClass() == PoolBackedDataSource.class) return new PbdsStatusReporter((PoolBackedDataSource) pds, doc); else return new UnknownPdsStatusReporter(pds, doc); }
UnknownPdsStatusReporter(PooledDataSource pds, Document doc) { this(pds.getClass().getName(), pds, doc); }