} catch (Exception e) {
recordApplicationEvent(Lifecycle.ON_FIRE);
throw Exceptions.propagate(e);
} finally {
ServiceStateLogic.setExpectedState(this, Lifecycle.RUNNING);
<BUG>}
deployed = true;
recordApplicationEvent(Lifecycle.RUNNING);</BUG>
logApplicationLifecycle("Started");
}

} catch (Exception e) {
recordApplicationEvent(Lifecycle.ON_FIRE);
throw Exceptions.propagate(e);
} finally {
ServiceStateLogic.setExpectedState(this, Lifecycle.RUNNING);
}
setExpectedStateAndRecordLifecycleEvent(Lifecycle.RUNNING);
logApplicationLifecycle("Started");
}
