if(reduction != null && reduction.demands.length == 0) {
generator = reduction.generator;
generatorParameters = reduction.parameters;
if(reduction != null && reduction.demands.length == 0) {
generator = reduction.generator;
generatorParameters = reduction.parameters;