code: private String getMimeTypeFromFileExtension(String srcFile)
    {
      String srcFileLowCase = srcFile.toLowerCase();
  
      for (FileCompressionType compressionType : FileCompressionType.values())
      {
        if (srcFileLowCase.endsWith(compressionType.fileExtension))
        {
          return compressionType.mimeType + "/" +
                 compressionType.mimeSubTypes.get(0);
        }
      }
  
      return null;
    }
docs: Derive mime type from file extension
  
  @param srcFile
  @return