public function isConnected() { return $this->synchronized(function ($self) { return $self->applicationState->equals(ApplicationStateKeys::get(ApplicationStateKeys::INITIALIZATION_SUCCESSFUL)); }, $this); }