ObjectType type = ad.getObjectType(obj); if (type.isKeyed()) { ad.setSession(obj, this); }
    void use(Object obj) {        Adapter ad = getAdapter(obj);        ObjectType type = ad.getObjectType(obj);        if (type.isKeyed()) { ad.setSession(obj, this); }        ObjectData odata = getObjectData(obj);        if (odata != null) {            odata.setObject(obj);        }    }