class Context implements IContext<TEntity> {

    public void OnEntityDestroyed(ContextEntityChanged listener) {
        if (OnEntityDestroyed != null) {
            OnEntityDestroyed = EntitasCollections.createSet(ContextEntityChanged.class);
        }
        OnEntityDestroyed.add(listener);
    }

    public  Context(int totalComponents, int startCreationIndex, ContextInfo contexInfo,
                   EntityBaseFactory<TEntity> factoryMethod, Function<TEntity, IAERC> aercFactory);

}