protected virtual StaticEntities GetStaticEntities(int espaceId)
        {
            var staticEntities = new StaticEntities();

            using (Transaction systemTransaction = DatabaseAccess.ForSystemDatabase.GetReadOnlyTransaction()) {
                using (IDataReader reader = DBRuntimePlatform.Instance.GetStaticRecordsByEspaceId(systemTransaction, espaceId)) {
                    while (reader.Read())
                    {
                        // "SELECT DATA_ID, NAME, SS_KEY, ENTITY_SS_KEY " ...
                        var dataId    = reader.SafeGet <string>("DATA_ID");
                        var ssKey     = reader.SafeGet <string>("SS_KEY");
                        var entityKey = reader.SafeGet <string>("ENTITY_SS_KEY");

                        Records records;
                        // Doing this way because java fails to translate otherwise
                        if (!staticEntities.ContainsKey(entityKey))
                        {
                            records = new Records();
                            staticEntities.Add(entityKey, records);
                        }
                        else
                        {
                            records = staticEntities[entityKey];
                        }

                        records.Add(ssKey, dataId);
                    }
                }
            }

            return(staticEntities);
        }