}  Set methods = new HashSet();  Iterator iter = offers.iterator(); while (iter.hasNext()) { DMDServiceOffer offer = (DMDServiceOffer) iter.next(); if (offer != null) { methods.add(offer.getIOMethod()); }
  public String[] getIOMethodsForMIME(String mime_type)      throws IllegalArgumentException  {    if (mime_type == null || mime_type.length() == 0)    {      throw new IllegalArgumentException();    }        Set methods = (Set) io_methods_by_mime_.get(mime_type);    if (methods == null)    {      return new String[0];    }        String[] result = new String[methods.size()];        return (String[]) methods.toArray(result);  }