ObjectType hisBase = oid.getDataObjectType().getBasetype();
ObjectType hisBase = oid.getObjectType().getBasetype();
    public boolean contains(OID oid) {        ObjectType myBase = getObjectType().getBasetype();        ObjectType hisBase = oid.getDataObjectType().getBasetype();        if (!myBase.equals(hisBase)) { return false; }        for (Iterator it = myBase.getKeyProperties(); it.hasNext(); ) {            Property prop = (Property) it.next();            addEqualsFilter(prop.getName(), oid.get(prop.getName()));        }        try {            return next();        } finally {            close();        }    }