boolean print = (Boolean) reference.get(6);
ModuleImpl module = workflow.modules.get(moduleName),
refModule = workflow.modules.get(refModuleName);
Output refOutput = refModule.output(refOutputName);
Domain inputDomain = module.domain();
DataType outputType = refOutput.dataType();
module.addRefInput(inputName, description, refOutput, type, false, print);
if(inputDomain.typeMatches(refOutput, module.input(inputName))){
// Single reference input case
((ReferenceInput) module.input(inputName)).setMultiValue(false);