private void processForVisitor(ClientEventVisitor visitor) {
            if (type == 0)
                visitor.visitEntityCreate(entityData);
            else if (type == 1)
                visitor.visitEntityUpdate(entityData);
            else if (type == 2)
                visitor.visitEntityRemove(entityId);
            else if (type == 3)
                visitor.visitEventReceived(entityId, event);
        }