private JDBCDriverVendor getVendorFromDatabase(DataSource dataSource)
throws JDBCRepositoryException {
JDBCDriverVendor vendor;
if (dataSource instanceof VendorDataSource) {
VendorDataSource vendorDataSource = (VendorDataSource) dataSource;
vendor = vendorDataSource.getVendor();
} else {
String databaseProduct = null;
Connection con = null;
try {
con = dataSource.getConnection();