fun generateMappedObject(state: QueryableState, schema: MappedSchema): PersistentState
Map a state to a PersistentState for the given schema, either via direct support from the state or via custom logic in this service.