@Override
  public AccountService getAccountService() {
    try {
      long startTimeMs = System.currentTimeMillis();
      logger.info("Starting a CompositeAccountService");
      CompositeAccountService compositeAccountService =
          new CompositeAccountService(primaryAccountServiceFactory.getAccountService(),
              secondaryAccountServiceFactory.getAccountService(), accountServiceMetrics, compositeAccountServiceConfig);
      long spentTimeMs = System.currentTimeMillis() - startTimeMs;
      logger.info("CompositeAccountService started, took {} ms", spentTimeMs);
      accountServiceMetrics.startupTimeInMs.update(spentTimeMs);
      return compositeAccountService;
    } catch (Exception e) {
      throw new IllegalStateException("Could not instantiate CompositeAccountService", e);
    }
  }
Constructor.
@param verifiableProperties The properties to get a {@link CompositeAccountService} instance. Cannot be {@code null}.
@param metricRegistry The {@link MetricRegistry} for metrics tracking. Cannot be {@code null}.
ambry-account/src/main/java/com/github/ambry/account/CompositeAccountServiceFactory.java