@Override
    public int getCachedSize() {
        // Approximate the size of the object in bytes by calculating the size
        // of each field.
        int size = 0;
        size += CacheSizes.sizeOfObject();            // overhead of object
        size += CacheSizes.sizeOfString(domain);      // domain
        size += CacheSizes.sizeOfInt();               // remotePort
        return size;
    }
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