public MutableAttributeMap<Object> createSubflowInput(RequestContext context) {
if (inputMapper != null) {
LocalAttributeMap<Object> input = new LocalAttributeMap<Object>();
MappingResults results = inputMapper.map(context, input);
if (results != null && results.hasErrorResults()) {
throw new FlowInputMappingException(context.getActiveFlow().getId(), context.getCurrentState().getId(),
results);
}
return input;
} else {
return new LocalAttributeMap<Object>();