public static void addImageFileToTheMapOfCatalogImages(String key,CachedFile file){
  assert file != null : "Program Error: attempt to add 'null' file to image map";
  assert (file.getName().equals("c2o_thumbnail.jpg") || file.getName().equals("c2o_resizedcover.jpg") || file.getName().equals(Constants.CALIBRE_COVER_FILENAME)) : "Program Error: Unexpected name '" + file.getName() + "' when trying to add image to map";
  if (!mapOfImagesToCopy.containsKey(key)) {
    mapOfImagesToCopy.put(key,file);
  }
}

public static void addImageFileToTheMapOfCatalogImages ( String key , CachedFile file ) { assert file != null : "Program Error: attempt to add 'null' file to image map" ; assert ( file . getName ( ) . equals ( "c2o_thumbnail.jpg" ) || file . getName ( ) . equals ( "c2o_resizedcover.jpg" ) || file . getName ( ) . equals ( Constants . CALIBRE_COVER_FILENAME ) ) : "Program Error: Unexpected name '" + file . getName ( ) + "' when trying to add image to map" ; if ( ! mapOfImagesToCopy . containsKey ( key ) ) { mapOfImagesToCopy . put ( key , file ) ; } }
add a file to the map of image files that are to be copied to the catalog ( assuming this option is even set ! )
