timer = new Thread(new Runnable() { public void run() { if (time > 0) { try { Thread.sleep(time); } catch (Exception e) { } sfTerminate(TerminationRecord.normal(name)); } } }); timer.start(); sfCreateNewChild(name+"_actionRunning", action, null);
sfCreateNewChild(name+"_duringActionRunning", action, null);
    public synchronized void sfStart() throws SmartFrogException, RemoteException {        super.sfStart();        timer = new Thread(new Runnable() {                    public void run() {                        if (time > 0) {                            try { Thread.sleep(time); } catch (Exception e) { }                            sfTerminate(TerminationRecord.normal(name));                        }                    }                });        timer.start();        sfCreateNewChild(name+"_actionRunning", action, null);    }