void loadTvShowsFromDatabase(MVMap<UUID,String> tvShowMap,ObjectMapper objectMapper){
  ObjectReader tvShowObjectReader=objectMapper.readerFor(TvShow.class);
  for (  UUID uuid : tvShowMap.keyList()) {
    try {
      TvShow tvShow=tvShowObjectReader.readValue(tvShowMap.get(uuid));
      tvShow.setDbId(uuid);
      tvShowList.add(tvShow);
    }
 catch (    Exception e) {
      LOGGER.warn("problem decoding TV show json string: ",e);
    }
  }
  LOGGER.info("found " + tvShowList.size() + " TV shows in database");
}

void loadTvShowsFromDatabase ( MVMap < UUID , String > tvShowMap , ObjectMapper objectMapper ) { ObjectReader tvShowObjectReader = objectMapper . readerFor ( TvShow . class ) ; for ( UUID uuid : tvShowMap . keyList ( ) ) { try { TvShow tvShow = tvShowObjectReader . readValue ( tvShowMap . get ( uuid ) ) ; tvShow . setDbId ( uuid ) ; tvShowList . add ( tvShow ) ; } catch ( Exception e ) { LOGGER . warn ( "problem decoding TV show json string: " , e ) ; } } LOGGER . info ( "found " + tvShowList . size ( ) + " TV shows in database" ) ; }
load tv shows from database .
