code: public static Database getDatabase(DataSource dataSource) {
  		if (dataSource == null) {
  			return Database.DEFAULT;
  		}
  		try {
  			String url = JdbcUtils.extractDatabaseMetaData(dataSource, "getURL");
  			DatabaseDriver driver = DatabaseDriver.fromJdbcUrl(url);
  			Database database = LOOKUP.get(driver);
  			if (database != null) {
  				return database;
  			}
  		}
  		catch (MetaDataAccessException ex) {
  			logger.warn("Unable to determine jdbc url from datasource", ex);
  		}
  		return Database.DEFAULT;
  	}
docs: Return the most suitable {@link Database} for the given {@link DataSource}.
  @param dataSource the source {@link DataSource}
  @return the most suitable {@link Database}