code: private void fixResolverVisMapTable(String toplevelCorpus, String table)
    {
      log.info("checking resolver_vis_map for errors");
  
      // delete all entries that reference a different corpus than the imported one
      int invalidRows = getJdbcTemplate().update("DELETE FROM " + table
        + " WHERE corpus <> ?", toplevelCorpus);
      if (invalidRows > 0)
      {
        log.warn("there were " + invalidRows
          + " rows in the resolver_vis_map that referenced the wrong corpus");
      }
  
    }
docs: Removes any unwanted entries from the resolver_vis_map table
  
  @param toplevelCorpus
  @param table