code: private String getMIMEType(String path) {
          String extension = getFileExtension(path);
  
          if (extension == null) {
              return FILE_TRANSFER_BINARY_MIME;
          }
  
          if ("zip".equals(extension) || "ear".equals(extension) || "war".equals(extension) || "jar".equals(extension) || "eba".equals(extension)) {
              return FILE_TRANSFER_ZIP_MIME;
  
          } else if ("pax".equals(extension)) {
              return FILE_TRANSFER_PAX_MIME;
  
          } else if ("gz".equals(extension) || "gzip".equals(extension)) {
  
              return FILE_TRANSFER_GZIP_MIME;
  
          } else if ("tar".equals(extension)) {
              return FILE_TRANSFER_TAR_MIME;
  
          } else if ("txt".equals(extension) || "log".equals(extension) || "trace".equals(extension) || "properties".equals(extension)) {
              return FILE_TRANSFER_TEXT_MIME;
  
          } else if ("xml".equals(extension) || "xslt".equals(extension) || "xsl".equals(extension)) {
              return FILE_TRANSFER_XML_MIME;
  
          } else if ("html".equals(extension) || "htm".equals(extension)) {
              return FILE_TRANSFER_HTML_MIME;
  
          } else {
              return FILE_TRANSFER_BINARY_MIME;
          }
      }
docs: Get the MIME type for the given path