EODatabaseContext dc = EODatabaseContext.registeredDatabaseContextForModel(entity().model(), ec);
EOEntity entity = entity(ec); EODatabaseContext dc = EODatabaseContext.registeredDatabaseContextForModel(entity.model(), ec);
    public NSArray newPrimaryKeys(EOEditingContext ec, int i) {        EODatabaseContext dc = EODatabaseContext.registeredDatabaseContextForModel(entity().model(), ec);                return dc.availableChannel().adaptorChannel().primaryKeysForNewRowsWithEntity(i, entity());    }