public void readExternal(ObjectInput in) throws IOException {
        text = ExternalizableUtil.getInstance().readSafeUTF(in);
        sessionType = SessionType.values()[ExternalizableUtil.getInstance().readInt(in)];
        if (ExternalizableUtil.getInstance().readBoolean(in)) {
            address = (JID) ExternalizableUtil.getInstance().readSerializable(in);
        }
        if (ExternalizableUtil.getInstance().readBoolean(in)) {
            streamID = BasicStreamIDFactory.createStreamID( ExternalizableUtil.getInstance().readSafeUTF(in) );
        }
    }
Cluster task that will ask a remote cluster node to deliver some raw text to a local session.

@author Gaston Dombiak
xmppserver/src/main/java/org/jivesoftware/openfire/session/DeliverRawTextTask.java