return new SIRJoiner(parent, type, initLiteralArray(weights.length, 0), true);
return new SIRJoiner(parent, type, Utils.initLiteralArray(weights.length, 0), true);
    public static SIRJoiner create(SIRContainer parent, 				   SIRJoinType type, 				   JExpression[] weights) {	if (type==SIRJoinType.NULL) {	    return new SIRJoiner(parent, type, initLiteralArray(weights.length, 0), true);	} else if (type==SIRJoinType.WEIGHTED_RR) {	    return createWeightedRR(parent,weights);	} else if (type==SIRJoinType.ROUND_ROBIN) {	    JExpression weight = (weights.length>0 ? weights[0] : new JIntLiteral(1));	    createUniformRR(parent,weight);	} else {	    fail("Unrecognized joiner type.");	}	// stupid compiler	return null;    }