public Adapter getAdapter(ObjectType type) { for (ObjectType ot = type; ot != null; ot = ot.getSupertype()) { Class klass = ot.getJavaClass(); if (klass != null) { Adapter a = getAdapter(klass); if (a != null) { return a; } }
public Adapter getAdapter(Class javaClass) { for (Class c = javaClass; c != null; c = c.getSuperclass()) { Adapter a = (Adapter) m_adapters.get(c); if (a != null) { return a; }
    public Adapter getAdapter(ObjectType type) {        for (ObjectType ot = type; ot != null; ot = ot.getSupertype()) {	    Class klass = ot.getJavaClass();	    if (klass != null) {		Adapter a = getAdapter(klass);		if (a != null) { return a; }	    }        }        Adapter a = (Adapter) m_adapters.get(null);        if (a != null) { return a; }        throw new IllegalArgumentException("no adapter for: " + type);    }