VariableReference vr = (VariableReference)i.next(); para = para + vr.getVariableName() + ", ";
para = para + i.next() + ", ";
    public synchronized void eventGenerated(LemEventGenerationEvent event) {        StyledDocument doc = new StyledDocument();        //send the object created event to the table model.        model.eventGenerated(event, counter);        doc.addStyle(new StyledElement(""+counter, oId));        doc.addStyle(new StyledElement(" Event Generated ,", text));        doc.addStyle(new StyledElement(" Source Object Id: ", text));        if(event.getSenderObjectId() != null)            doc.addStyle(new StyledElement(event.getSenderObjectId().toString(), oId));        else            doc.addStyle(new StyledElement("Scenario generated", oId));        doc.addStyle(new StyledElement(" Event Name: ", text));        doc.addStyle(new StyledElement(event.getEventType(), classNames));        doc.addStyle(new StyledElement(" Parameters Sent: ", text));        LinkedList parameters = new LinkedList();        if(event.getEventParameters().size() > 0)            parameters.addAll(event.getEventParameters());        String para = "";        for (Iterator i = parameters.iterator(); i.hasNext();) {	    VariableReference vr = (VariableReference)i.next();            para = para + vr.getVariableName() + ", ";        }        doc.addStyle(new StyledElement(para, values));        doc.addStyle(new StyledElement(" Delay: ", text));        if(event.getEventDelay() != null){        doc.addStyle(new StyledElement(event.getEventDelay().toString(), values));        }        doc.addStyle(new StyledElement("\n", text));        addText(doc);    }