d.print(script.getCode());
d.print(code);
    static void writeEvents(Device d, SComponent c)        throws IOException    {        Iterator it = c.getScriptListeners().iterator();        while (it.hasNext()) {            ScriptListener script = (ScriptListener)it.next();            d.print(" ");            d.print(script.getEvent());            d.print("=\"");            d.print(script.getCode());            d.print("\"");        }    }