code: public Completable initializeState(final StreamFrom from, final StreamTo to) {
      if (from == StreamFrom.BEGINNING && to == StreamTo.INFINITY) {
        buzzMe();
        return initFromBeginningToInfinity();
      } else if (from == StreamFrom.BEGINNING && to == StreamTo.NOW) {
        return initFromBeginningToNow();
      } else if (from == StreamFrom.NOW && to == StreamTo.INFINITY) {
        buzzMe();
        return initFromNowToInfinity();
      } else {
        throw new IllegalStateException("Unsupported FROM/TO combination: " + from + " -> " + to);
      }
    }
docs: Initialize the {@link SessionState} based on arbitrary time points.
  <p>
  The following combinations are supported and make sense:
  <p>
  - {@link StreamFrom#BEGINNING} to {@link StreamTo#NOW}
  - {@link StreamFrom#BEGINNING} to {@link StreamTo#INFINITY}
  - {@link StreamFrom#NOW} to {@link StreamTo#INFINITY}
  <p>
  If you already have state captured and you want to resume from this position, use
  {@link #recoverState(StateFormat, byte[])} or {@link #recoverOrInitializeState(StateFormat, byte[], StreamFrom, StreamTo)}
  instead.
  
  @param from where to start streaming from.
  @param to when to stop streaming.
  @return A {@link Completable} indicating the success or failure of the state init.