class IndexManager {

  void addIndexMapping(RegionEntry entry, IndexProtocol index) {
    try {
      index.addIndexMapping(entry);
    } catch (Exception exception) {
      index.markValid(false);
      setPRIndexAsInvalid((AbstractIndex) index);
      logger.warn(String.format(
          "Updating the Index %s failed. The index is corrupted and marked as invalid.",
          ((AbstractIndex) index).indexName), exception);
    }
  }

  public  IndexManager(InternalCache cache, Region region);

}