public static Object findBean(ObjectName oname) { if (__instance==null) return null; for(Iterator iter=__instance._beans.entrySet().iterator();iter.hasNext();) { Map.Entry entry=(Map.Entry)iter.next(); if (entry.getValue().equals(oname)) return entry.getKey(); } return null; }
public synchronized Object findBean(ObjectName oname) { for (Iterator iter = _beans.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry)iter.next(); if (entry.getValue().equals(oname)) return entry.getKey(); } return null; }
    public static Object findBean(ObjectName oname)    {        if (__instance==null)            return null;        for(Iterator iter=__instance._beans.entrySet().iterator();iter.hasNext();)        {            Map.Entry entry=(Map.Entry)iter.next();            if (entry.getValue().equals(oname))                return entry.getKey();        }        return null;    }