if (primaryKey() != null) {
if (rawPrimaryKey() != null) { NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); if (primaryKeyAttributeNames.count()>1) throw new RuntimeException("primaryKeyDictionary does not support compound primary keys");
    public NSDictionary primaryKeyDictionary(boolean inTransaction) {        if (!inTransaction && _primaryKeyDictionary == null) {            if (primaryKey() != null) {                //FIXME: Should be getting primaryKey name from the entity of the enterprise object.                _primaryKeyDictionary = new NSDictionary(primaryKey(), "id");            } else                _primaryKeyDictionary = ERXUtilities.primaryKeyDictionaryForEntity(editingContext(), entityName());        }        return _primaryKeyDictionary;    }