abstract fun withSubjectBasedRepresentation(representationProvider: (R) -> Any): Unit
Uses the given representationProvider which provides the representation for a given subject wrapped in Option instead of the so far defined representation (which defaults to the subject as such).
Notice, if you want to use text (e.g. a String) as representation, then wrap it into a RawString via RawString.create and pass the RawString instead.