@Override
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
        domain = ExternalizableUtil.getInstance().readSafeUTF(in);
        if (ExternalizableUtil.getInstance().readBoolean(in)) {
            permission = Permission.values()[ExternalizableUtil.getInstance().readInt(in)];
        }
        remotePort = ExternalizableUtil.getInstance().readInt(in);
    }
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