throw new IllegalArgumentException("relationship " + k + " relationship was null");
if (ent.anyAttributeNamed(k) != null) { break; } throw new IllegalArgumentException("relationship " + keyPath + " generated null");
    private EOEntity entityForKeyPath(String keyPath) {        NSArray keys = NSArray.componentsSeparatedByString(keyPath, ".");        EOEntity ent = entity();        for (int i = 0; i < keys.count(); i++) {            String k = (String)keys.objectAtIndex(i);            EORelationship rel = ent.anyRelationshipNamed(k);            if (rel == null) {                throw new IllegalArgumentException("relationship " + k + " relationship was null");            }            ent = rel.destinationEntity();        }        return ent;    }