code: public boolean isCompatible(MediaType other) {
          if (other == null)
              return false;
          if (type.equals(MEDIA_TYPE_WILDCARD) || other.type.equals(MEDIA_TYPE_WILDCARD))
              return true;
          else if (type.equalsIgnoreCase(other.type) && (subtype.equals(MEDIA_TYPE_WILDCARD) || other.subtype.equals(MEDIA_TYPE_WILDCARD)))
              return true;
          else
              return this.type.equalsIgnoreCase(other.type)
                      && this.subtype.equalsIgnoreCase(other.subtype);
      }
docs: Check if this media type is compatible with another media type. E.g.
  image/* is compatible with image/jpeg, image/png, etc. Media type
  pathParameter are ignored. The function is commutative.
  
  @param other the media type to compare with
  @return true if the types are compatible, false otherwise.