MapHandler.add_map_element(p0, tmp, SignalHandler.SIGNAL);
MapHandler.add_map_element(p0, SignalHandler.SIGNAL, tmp);
    static void send(java.lang.Object p0, java.lang.Object p1) throws java.lang.Exception {        Signal s = (Signal) p1;                if (s != null) {            // Only send a new signal (store in signal memory) if an action exists.            // Otherwise, the chain of signals/ actions finishes here, until a new            // hardware event (interrupt) occurs.            if (s.predicate != null) {                                // Create signal for storage in signal memory.                Signal tmp = new Signal();                        if (tmp != null) {                                    LogHandler.log(LogHandler.INFO_LOG_LEVEL, "Send signal: " + s.predicate);                    // Copy transporting signal given as parameter to the signal memory signal.                    tmp.priority = s.priority;                    tmp.language = s.language;                    tmp.subject = s.subject;                    tmp.predicate = s.predicate;                    tmp.owner = s.owner;                    tmp.sender = s.sender;                    tmp.object = s.object;                    tmp.adverbial = s.adverbial;                    tmp.condition = s.condition;                    // Caution! Adding of signals must be synchronized between:                    // - SignalHandler.send for adding internal CYBOP signals                    // - JavaEventHandler.dispatchEvent for adding transformed java event signals                    // These are the only procedures accessing the signal                    // memory for adding signals.                    synchronized (p0) {                        // Add signal to signal memory (interrupt vector table).                        MapHandler.add_map_element(p0, tmp, SignalHandler.SIGNAL);                    }                } else {                            LogHandler.log(LogHandler.ERROR_LOG_LEVEL, "Could not send signal. The signal memory signal is null.");                }            } else {                                // Do not log this as the loop runs infinite and would stuff the log record!                // The action is null. No signal gets stored in the signal memory.            }            } else {            LogHandler.log(LogHandler.ERROR_LOG_LEVEL, "Could not send signal. The signal is null.");        }    }