new State(parentFlow, "whatev") {
protected void doEnter(RequestControlContext context) throws FlowExecutionException {
}
};
new EndState(subflow, "end");
subflow.setOutputMapper(new Mapper() {
@SuppressWarnings("unchecked")
public MappingResults map(Object source, Object target) {
MutableAttributeMap<Object> map = (MutableAttributeMap<Object>) target;
map.put("foo", "bar");
return new DefaultMappingResults(source, target, Collections.<MappingResult> emptyList());