code: public List<Map<String, Object>> listCorpusStats(File databaseProperties)
    {
      List<Map<String, Object>> result = new LinkedList<>();
  
      DataSource origDataSource = getDataSource().getInnerDataSource();
      try
      {
        if (databaseProperties != null)
        {
          getDataSource().setInnerDataSource(createDataSource(databaseProperties));
        }
        result = getJdbcTemplate().queryForList(
          "SELECT * FROM corpus_info ORDER BY name");
      }
      catch (IOException | URISyntaxException | DataAccessException ex)
      {
        if (databaseProperties == null)
        {
          log.error("Could not query corpus list", ex);
        }
        else
        {
          log.error(
            "Could not query corpus list for the file " + databaseProperties.
            getAbsolutePath(), ex);
        }
      }
      finally
      {
        getDataSource().setInnerDataSource(origDataSource);
      }
      return result;
    }
docs: Lists the corpora using the connection information of a given
  "database.properties". file
  
  @param databaseProperties
  @return