delegate) {
+ this.delegate = delegate;
+ }
+
+ /**
+ * Function used to determine the caching key, given the current {@link DynamicSchemaContext}.
+ *
+ * The default keyGetter ignores the context and just returns the same object all the time. This
+ * results in a cache that only keeps a single value (since there's only a single key ever used
+ * to store / find cache entries.
+ */
+ private Function keyGetter = (dc) -> "WHATEVER";
+
+ protected Cache