code: private CounterSnapshot refreshCounterSnapshot(String counterId) throws IOException {
      final CounterSnapshot newSnapshot = counterSnapshotFactory.create(counterId);
      inMemSnapshot.put(counterId, newSnapshot);
      return newSnapshot;
    }
docs: Update cached snapshot with most recent state of counter in Datastore.