public static function currentAppsState($registry)
    {
        $modelStates = [];

        foreach ($registry->getModels() as $modelName => $modelObj) {
            $modelStates[$modelName] = ModelState::fromModel($modelObj);
        }

        return static::createObject($modelStates);
    }