*/
    private void writeObject(Reference ref, Object obj) throws IOException {
        if (obj instanceof Dictionary) {
            writeObjectDictionary((Dictionary) obj);
        }
        else {
            writeObjectValue(ref, obj);
        }
    }