code: protected String buildKey(final Class<?> clazz, final String id, final Number revision) {
          if (revision != null) {
              return clazz.getSimpleName() + "-" + id + "-" + revision;
          } else {
              return clazz.getSimpleName() + "-" + id;
          }
      }
docs: Build the unique key to be used for caching entities.
  
  @param clazz The class of the entity to be cached.
  @param id The id of the entity to be cached.
  @param revision The revision of the entity to be cached, or null if it's the latest entity.
  @return The unique key that can be used for caching.