public static function rehydrate( $serialised, ExecHelper $execHelper, LoggerInterface $logger = null ){
        /** @var AbstractViewComponent $view */
        $view = unserialize( $serialised );
        $view->setExec( $execHelper );
        $view->handleDependencyInjection();
        $view->setLogger( $logger );
        $view->log( "Rehydrated", LogLevel::DEBUG );
        return $view;
    }