private void loadMap(String extension,String mimeType){
  if (!mimeTypeToExtensionMap.containsKey(mimeType)) {
    mimeTypeToExtensionMap.put(mimeType,extension);
  }
  extensionToMimeTypeMap.put(extension,mimeType);
  if (isImageType(mimeType)) {
    imageMimeTypeSet.add(mimeType);
  }
}

private void loadMap ( String extension , String mimeType ) { if ( ! mimeTypeToExtensionMap . containsKey ( mimeType ) ) { mimeTypeToExtensionMap . put ( mimeType , extension ) ; } extensionToMimeTypeMap . put ( extension , mimeType ) ; if ( isImageType ( mimeType ) ) { imageMimeTypeSet . add ( mimeType ) ; } }
load an entry into the map .
