enm = allowed(); while (enm.hasMoreElements()) { c = (Class) enm.nextElement();   if (c.isInstance(o)) { list   = (HashSet) m_Allowed.get(c); result = list.contains(displayName); break; } }
list = (HashSet) m_Allowed.get(c);   if (list != null) result = list.contains(displayName);
   public boolean isAllowed(Object o, String displayName) {      Enumeration    enm;      Class          c;      boolean        result;      HashSet        list;            result = true;            enm = allowed();      while (enm.hasMoreElements()) {         c = (Class) enm.nextElement();                  // is it an instance of this class?         if (c.isInstance(o)) {            list   = (HashSet) m_Allowed.get(c);            result = list.contains(displayName);             break;         }      }            return result;   }