class CommonCodegenUtils {

    public static void setAssignExpressionValue( final BlockStmt body, final String assignExpressionName, final Expression value) {
        AssignExpr assignExpr = getAssignExpression(body, assignExpressionName)
                .orElseThrow(() -> new KiePMMLException(String.format(MISSING_VARIABLE_IN_BODY, assignExpressionName, body)));
        assignExpr.setValue(value);
    }

    private  CommonCodegenUtils();

}