@Override
    public void writeExternal(ObjectOutput out) throws IOException {
        ExternalizableUtil.getInstance().writeSafeUTF(out, domain);
        ExternalizableUtil.getInstance().writeBoolean(out, permission != null);
        if (permission != null) {
            ExternalizableUtil.getInstance().writeInt(out, permission.ordinal());
        }
        ExternalizableUtil.getInstance().writeInt(out, remotePort);
    }
Holds the configuration when connecting to/from a remote server. The configuration specifies
if incoming or outgoing connections are allowed to the remote server and the port to use
when creating an outgoing connection.

@author Gaston Dombiak
xmppserver/src/main/java/org/jivesoftware/openfire/server/RemoteServerConfiguration.java