if (splitter.getIdent().equals("ROUND_ROBIN")) splitType = SIRSplitType.ROUND_ROBIN; else if (splitter.getIdent().equals("DUPLICATE")) splitType = SIRSplitType.DUPLICATE; else if (splitter.getIdent().equals("NULL")) splitType = SIRSplitType.NULL; else if (splitter.getIdent().equals("WEIGHTED_ROUND_ROBIN")) {
SIRSplitter splitter = null;
    private void buildSplitter(JExpression type)     {	if (!(type instanceof JMethodCallExpression))	    at.dms.util.Utils.fail(printLine(type) + 				   "arg to setSplitter must be a method call");	JMethodCallExpression splitter = (JMethodCallExpression)type;		if (splitter.getIdent().equals("ROUND_ROBIN"))	    splitType = SIRSplitType.ROUND_ROBIN;	else if (splitter.getIdent().equals("DUPLICATE"))	    splitType = SIRSplitType.DUPLICATE;	else if (splitter.getIdent().equals("NULL"))	    splitType = SIRSplitType.NULL;	else if (splitter.getIdent().equals("WEIGHTED_ROUND_ROBIN")) {	    //For weighted round robins, the splitter get built here and set here	    JExpression[] args = splitter.getArgs();	    if (parentStream instanceof SIRSplitJoin)		((SIRSplitJoin)parentStream).setSplitter(SIRSplitter.							createWeightedRR((SIRSplitJoin)									 parentStream, 									 args));	    if (parentStream instanceof SIRFeedbackLoop)		((SIRFeedbackLoop)parentStream).setSplitter(SIRSplitter.							 createWeightedRR((SIRFeedbackLoop)									  parentStream, 									  args));	    splitType = null;	}	else	    at.dms.util.Utils.fail(printLine(type) + 				   "Unsupported Split Type");	    }