init.addStatement(new JExpressionStatement(null, new JMethodCallExpression(null, new JThisExpression(null), child.getInit().getName(), (JExpression[])params.toArray(new JExpression[0])), null));
if (child.needsInit()) { init.addStatement(new JExpressionStatement(null, new JMethodCallExpression(null, new JThisExpression(null), child.getInit().getName(), (JExpression[])params.toArray(new JExpression[0])), null)); }
    private static JMethodDeclaration makeInitFunction(SIRSplitJoin sj,						       List children) {         // Start with the init function from the split/join.	JMethodDeclaration init = sj.getInit();	// add calls to init functions	for (int i=0; i<sj.size(); i++) {	    SIRStream child = sj.get(i);	    List params = sj.getParams(i);	    init.addStatement(new JExpressionStatement(null,						   new JMethodCallExpression(null, 						     new JThisExpression(null),						     child.getInit().getName(),						     (JExpression[])params.toArray(new JExpression[0])),						       null));	}        return init;    }