public void unregister() {
   try {
     forceUnregister(SERVICE.getFileExtensionAssociation(extention));
     forceUnregister(SERVICE.getMimeTypeAssociation(extention));
   } catch (IllegalArgumentException ignored) {
     // SEE: LWC-1170
     LOG.warn("Can't unregister!", ignored);
   }
 }
  public boolean isAvailable() {
    try {
      // if no association at all, then it is available
      Association f = SERVICE.getFileExtensionAssociation(extention);
      if (f == null && f == SERVICE.getMimeTypeAssociation(mimeType)) return true;
    } catch (IllegalArgumentException iae) {
      // SEE: LWC-1170
      // If JDIC bails on us, the registry might be a little confused...
      // so let's fix it by inserting ours.
      LOG.warn("Can't check availability!", iae);
      return true;
    }

    // still check for a default handler.
    String extHandler = SystemUtils.getDefaultExtentionHandler(extention);
    return ("".equals(extHandler) && "".equals(SystemUtils.getDefaultMimeHandler(mimeType)));
  }