public MySqlAccountStore getMySqlAccountStore() throws SQLException {
    Map<String, List<DbEndpoint>> dcToMySqlDBEndpoints = getDbEndpointsPerDC(config.dbInfo);
    // Flatten to List (TODO: does utility method need to return map?)
    List<DbEndpoint> dbEndpoints = new ArrayList<>();
    dcToMySqlDBEndpoints.values().forEach(dbEndpoints::addAll);
    try {
      return new MySqlAccountStore(dbEndpoints, localDatacenter, metrics, config);
    } catch (SQLException e) {
      logger.error("MySQL account store creation failed", e);
      throw e;
    }
  }
Returns an instance of the {@link MySqlAccountStore} that the factory generates.
@return an instance of {@link MySqlAccountStore} generated by this factory.
@throws SQLException
ambry-account/src/main/java/com/github/ambry/account/mysql/MySqlAccountStoreFactory.java