DataObjectMirror cache = context.createModelCache(term.source());
context.add(cache.createReset());
for (Joined.Mapping mapping : term.mappings()) {
// input: joined(destination), output: origin(source)
Property source = inputType.findProperty(mapping.destination());
Property destination = outputType.findProperty(mapping.source());
context.add(destination.createSetter(
cache.get(),
source.createGetter(context.getInput())));
}
ResultMirror result = context.getOutput(outputPort);