@ManagedOperation
    public void resume() {
        if(!state.compareAndSet(PAUSED, RUNNING)) {
            throw new IllegalStateException("Unable to resume service with state " + state);
        }
    }