s.predicate = JavaEventHandler.MOUSE_MOVED_EVENT;
ItemHandler.set_item_element(it, "mouse.pointer_position.z_distance.quantity", new java.lang.Integer(0)); ItemHandler.set_item_element(it, "mouse.pointer_position.z_distance.unit", "pixel");  s.predicate = "mouse_moved";
    static void transform_event(java.lang.Object p0, java.lang.Object p1) {        Signal s = (Signal) p0;                if (s != null) {                        s.priority = SignalHandler.NORMAL_PRIORITY;            s.language = SignalHandler.NEURO_LANGUAGE;//??            s.subject = Statics.SELF;            java.awt.AWTEvent evt = (java.awt.AWTEvent) p1;                if (evt != null) {                    LogHandler.log(LogHandler.INFO_LOG_LEVEL, "Transform event.");                                int id = evt.getID();    /*??                if (id == java.awt.event.ComponentEvent.COMPONENT_HIDDEN) {                        a = Controller.COMPONENT_HIDDEN_ACTION;                    l = Signal.NEURO_LANGUAGE;                    } else if (id == java.awt.event.ComponentEvent.COMPONENT_MOVED) {                        a = Controller.COMPONENT_MOVED_ACTION;                    l = Signal.NEURO_LANGUAGE;                    } else if (id == java.awt.event.ComponentEvent.COMPONENT_RESIZED) {                        a = Controller.COMPONENT_RESIZED_ACTION;                    l = Signal.NEURO_LANGUAGE;                    } else if (id == java.awt.event.ComponentEvent.COMPONENT_SHOWN) {                        a = Controller.COMPONENT_SHOWN_ACTION;                    l = Signal.NEURO_LANGUAGE;                    } else if (id == java.awt.event.FocusEvent.FOCUS_GAINED) {                        a = Controller.FOCUS_GAINED_ACTION;                    l = Signal.NEURO_LANGUAGE;                    } else if (id == java.awt.event.FocusEvent.FOCUS_LOST) {                        a = Controller.FOCUS_LOST_ACTION;                    l = Signal.NEURO_LANGUAGE;                    } else if (id == java.awt.event.HierarchyEvent.ANCESTOR_MOVED) {                        a = Controller.ANCESTOR_MOVED_ACTION;                    l = Signal.NEURO_LANGUAGE;                    } else if (id == java.awt.event.HierarchyEvent.ANCESTOR_RESIZED) {                        a = Controller.ANCESTOR_RESIZED_ACTION;                    l = Signal.NEURO_LANGUAGE;                    } else if (id == java.awt.event.HierarchyEvent.HIERARCHY_CHANGED) {                        a = Controller.HIERARCHY_CHANGED_ACTION;                    l = Signal.NEURO_LANGUAGE;                    } else if (id == java.awt.event.InputMethodEvent.CARET_POSITION_CHANGED) {                        a = Controller.CARET_POSITION_CHANGED_ACTION;                    l = Signal.NEURO_LANGUAGE;                    } else if (id == java.awt.event.InputMethodEvent.INPUT_METHOD_TEXT_CHANGED) {                        a = Controller.INPUT_METHOD_TEXT_CHANGED_ACTION;                    l = Signal.NEURO_LANGUAGE;                    } else if (id == java.awt.event.KeyEvent.KEY_PRESSED) {                        a = Controller.KEY_PRESSED_ACTION;                    l = Signal.TUI_LANGUAGE;                    } else if (id == java.awt.event.KeyEvent.KEY_RELEASED) {                        a = Controller.KEY_RELEASED_ACTION;                    l = Signal.TUI_LANGUAGE;                    } else if (id == java.awt.event.KeyEvent.KEY_TYPED) {                        a = Controller.KEY_TYPED_ACTION;                    l = Signal.TUI_LANGUAGE;                    } else */if (id == java.awt.event.MouseEvent.MOUSE_CLICKED) {                                        s.predicate = JavaEventHandler.MOUSE_CLICKED_EVENT;                }/*?? else if (id == java.awt.event.MouseEvent.MOUSE_DRAGGED) {                        a = Controller.MOUSE_DRAGGED_ACTION;                    l = Signal.MOUSE_LANGUAGE;                        //?? Find out which child system is active (top window)                    //?? to use its controller here.                    System sys = (System) getChild(Launcher.SYSTEM);                        if (sys != null) {                            Controller c = (Controller) sys.getChild(System.CONTROLLER);                                if (c != null) {                                    m = (MouseModel) c.getChild(Controller.MOUSE_MODEL);                                    if (m != null) {                                    Space sp = (Space) m.getChild(MouseModel.POINTER_POSITION);                                    if (sp != null) {                                        sp.setChild(Space.EXPANSE_X_COORDINATE, new Integer(((java.awt.event.MouseEvent) evt).getX()));                                    sp.setChild(Space.EXPANSE_Y_COORDINATE, new Integer(((java.awt.event.MouseEvent) evt).getY()));                                    } else {                                        throw new Exception("Could not handle java event. The pointer position is null.");                                }                                    } else {                                                    throw new Exception("Could not handle java event. The mouse model is null.");                            }                                } else {                                            throw new Exception("Could not handle java event. The controller is null.");                        }                            } else {                                    throw new Exception("Could not handle java event. The system is null.");                    }                    } else if (id == java.awt.event.MouseEvent.MOUSE_ENTERED) {                        a = Controller.MOUSE_ENTERED_ACTION;                    l = Signal.MOUSE_LANGUAGE;                        //?? Find out which child system is active (top window)                    //?? to use its controller here.                    System sys = (System) getChild(Launcher.SYSTEM);                        if (sys != null) {                            Controller c = (Controller) sys.getChild(System.CONTROLLER);                                if (c != null) {                                    m = (MouseModel) c.getChild(Controller.MOUSE_MODEL);                                    if (m != null) {                                    Space sp = (Space) m.getChild(MouseModel.POINTER_POSITION);                                    if (sp != null) {                                        sp.setChild(Space.EXPANSE_X_COORDINATE, new Integer(((java.awt.event.MouseEvent) evt).getX()));                                    sp.setChild(Space.EXPANSE_Y_COORDINATE, new Integer(((java.awt.event.MouseEvent) evt).getY()));                                    } else {                                        throw new Exception("Could not handle java event. The pointer position is null.");                                }                                    } else {                                                    throw new Exception("Could not handle java event. The mouse model is null.");                            }                                } else {                                            throw new Exception("Could not handle java event. The controller is null.");                        }                            } else {                                    throw new Exception("Could not handle java event. The system is null.");                    }                    } else if (id == java.awt.event.MouseEvent.MOUSE_EXITED) {                        a = Controller.MOUSE_EXITED_ACTION;                    l = Signal.MOUSE_LANGUAGE;                        //?? Find out which child system is active (top window)                    //?? to use its controller here.                    System sys = (System) getChild(Launcher.SYSTEM);                        if (sys != null) {                            Controller c = (Controller) sys.getChild(System.CONTROLLER);                                if (c != null) {                                    m = (MouseModel) c.getChild(Controller.MOUSE_MODEL);                                    if (m != null) {                                    Space sp = (Space) m.getChild(MouseModel.POINTER_POSITION);                                    if (sp != null) {                                        sp.setChild(Space.EXPANSE_X_COORDINATE, new Integer(((java.awt.event.MouseEvent) evt).getX()));                                    sp.setChild(Space.EXPANSE_Y_COORDINATE, new Integer(((java.awt.event.MouseEvent) evt).getY()));                                    } else {                                        throw new Exception("Could not handle java event. The pointer position is null.");                                }                                    } else {                                                    throw new Exception("Could not handle java event. The mouse model is null.");                            }                                } else {                                            throw new Exception("Could not handle java event. The controller is null.");                        }                            } else {                                    throw new Exception("Could not handle java event. The system is null.");                    }                    }*/ else if (id == java.awt.event.MouseEvent.MOUSE_MOVED) {                    Item it = SignalHandler.root;                    ItemHandler.set_item_element(it, "mouse.pointer_position.x_distance.quantity", new java.lang.Integer(((java.awt.event.MouseEvent) evt).getX()));                    ItemHandler.set_item_element(it, "mouse.pointer_position.x_distance.unit", "pixel");                    ItemHandler.set_item_element(it, "mouse.pointer_position.y_distance.quantity", new java.lang.Integer(((java.awt.event.MouseEvent) evt).getY()));                    ItemHandler.set_item_element(it, "mouse.pointer_position.y_distance.unit", "pixel");                    s.predicate = JavaEventHandler.MOUSE_MOVED_EVENT;                    }/*?? else if (id == java.awt.event.MouseEvent.MOUSE_PRESSED) {                        a = Controller.MOUSE_PRESSED_ACTION;                    l = Signal.MOUSE_LANGUAGE;                        //?? Find out which child system is active (top window)                    //?? to use its controller here.                    System sys = (System) getChild(Launcher.SYSTEM);                        if (sys != null) {                            Controller c = (Controller) sys.getChild(System.CONTROLLER);                                if (c != null) {                                    m = (MouseModel) c.getChild(Controller.MOUSE_MODEL);                                    if (m != null) {                                    Space sp = (Space) m.getChild(MouseModel.POINTER_POSITION);                                    if (sp != null) {                                        sp.setChild(Space.EXPANSE_X_COORDINATE, new Integer(((java.awt.event.MouseEvent) evt).getX()));                                    sp.setChild(Space.EXPANSE_Y_COORDINATE, new Integer(((java.awt.event.MouseEvent) evt).getY()));                                    } else {                                        throw new Exception("Could not handle java event. The pointer position is null.");                                }                                    } else {                                                    throw new Exception("Could not handle java event. The mouse model is null.");                            }                                } else {                                            throw new Exception("Could not handle java event. The controller is null.");                        }                            } else {                                    throw new Exception("Could not handle java event. The system is null.");                    }                    } else if (id == java.awt.event.MouseEvent.MOUSE_RELEASED) {                        a = Controller.MOUSE_RELEASED_ACTION;                    l = Signal.MOUSE_LANGUAGE;                        //?? Find out which child system is active (top window)                    //?? to use its controller here.                    System sys = (System) getChild(Launcher.SYSTEM);                        if (sys != null) {                            Controller c = (Controller) sys.getChild(System.CONTROLLER);                                if (c != null) {                                    m = (MouseModel) c.getChild(Controller.MOUSE_MODEL);                                    if (m != null) {                                    Space sp = (Space) m.getChild(MouseModel.POINTER_POSITION);                                    if (sp != null) {                                        sp.setChild(Space.EXPANSE_X_COORDINATE, new Integer(((java.awt.event.MouseEvent) evt).getX()));                                    sp.setChild(Space.EXPANSE_Y_COORDINATE, new Integer(((java.awt.event.MouseEvent) evt).getY()));                                    } else {                                        throw new Exception("Could not handle java event. The pointer position is null.");                                }                                    } else {                                                    throw new Exception("Could not handle java event. The mouse model is null.");                            }                                } else {                                            throw new Exception("Could not handle java event. The controller is null.");                        }                            } else {                                    throw new Exception("Could not handle java event. The system is null.");                    }                    } else if (id == java.awt.event.MouseWheelEvent.MOUSE_WHEEL) {                        a = Controller.MOUSE_WHEEL_ACTION;                    l = Signal.MOUSE_LANGUAGE;                }*/            } else {                    LogHandler.log(LogHandler.ERROR_LOG_LEVEL, "Could not transform java event. The java event is null.");            }        } else {            LogHandler.log(LogHandler.ERROR_LOG_LEVEL, "Could not transform java event. The signal is null.");        }    }