Add isRestart to ServiceContext API