public static int sizeOfObject() {
        return 4;
    }
Returns the size in bytes of a basic Object. This method should only
be used for actual Object objects and not classes that extend Object.

@return the size of an Object.
xmppserver/src/main/java/org/jivesoftware/util/cache/CacheSizes.java