private void logAndThrowIllegalStateException(String errorMessage, Exception cause) {
    logger.error(errorMessage, cause);
    throw new IllegalStateException(errorMessage, cause);
  }
Helper function to log the error message out and throw an {@link IllegalStateException}.
@param errorMessage The error message.
@param cause The cause exception.
ambry-account/src/main/java/com/github/ambry/account/RouterStore.java