throws RepositoryException {
JDBCRepositoryConfiguration configuration =
factory.createJDBCRepositoryConfiguration();
JDBCDriverVendor vendor = getVendor(properties);
configuration.setDriverVendor(vendor);
// See whether there is a complete datasource specified, if there is
// then use that directly.
DataSource dataSource = (DataSource) properties.get(