code: public static DataSourceConfiguration getDataSourceConfiguration(final DataSource dataSource) {
          DataSourceConfiguration result = new DataSourceConfiguration(dataSource.getClass().getName());
          result.getProperties().putAll(findAllGetterProperties(dataSource));
          return result;
      }
docs: Get data source configuration.
  
  @param dataSource data source
  @return data source configuration