@Override
  protected void checkOpen() {
    if (!open.get()) {
      throw new IllegalStateException("AccountService is closed.");
    }
  }
The service used for mysql migration which includes all common logic.
ambry-account/src/main/java/com/github/ambry/account/CachedAccountService.java