code: public static String getMimeType(String name, Property property, String defaultValue) {
          MimeType mimeType = getMimeType(name, property);
          return mimeType != null ? mimeType.toString() : defaultValue;
      }
docs: Detects the mime type of a binary property in the context of the nodes name.
  
  @param name         the name of the node which defines the binary resource (probably a file name)
  @param property     the binary property (for stream parsing)
  @param defaultValue the default value if the detection has no useful result
  @return the detected mime type or the default value given