public void processEvent(Event event)
    {
        _printStream.println(event);
        NormalizedEvent nevent = _appContext.getNormalizedEvent(event);
        int msgType = nevent.getMsgType();

        switch (event.getType())
        {
            case Event.OMM_ITEM_EVENT:
            {
                if (msgType == NormalizedEvent.REFRESH)
                {
                    _status.setStatus(_itemName + ": " + nevent.getStatusText());
                    byte[] data = nevent.getPayloadBytes();
                    parseData(data, false);
                    _panel.repaintCanvas();
                    _hasData = true;
                }
                else if (msgType == NormalizedEvent.UPDATE)
                {
                    byte[] data = nevent.getPayloadBytes();
                    parseData(data, true);
                }
                else if (msgType == NormalizedEvent.STATUS)
                {
                    _status.setStatus(_itemName + ": " + nevent.getStatusText());
                    _panel.repaintCanvas();
                    if (nevent.isClosed())
                    {
                        if (_page != null)
                        {
                            _page.reset(_pageUpdateList);
                            _panel.repaintCanvas();
                            _active = false;
                            _handle = null;
                            _hasData = false;
                        }
                    }
                    else if (nevent.isRename())
                    {
                        // msg.getState().getStreamState() ==
                        // OMMState.Stream.REDIRECT)
                        String attribInfoName = nevent.getNewItemName();
                        _status.setStatus(_itemName + ": renamed to: " + attribInfoName);
                        _itemName = attribInfoName;
                    }
                }
            }
                break;
            default:
                // ignore other events
        }
    }