*/
    private void writeDictionary(Dictionary dict) throws IOException {
        logger.log(Level.FINER, "writeDictionary()  dict: {0}", dict);
        try {
            writeDictionary(dict.getEntries());
        }
        catch(IllegalArgumentException e) {
            String dictString = (dict.getPObjectReference() != null)
                ? dict.getPObjectReference().toString() : dict.toString();
            throw new IllegalArgumentException(
                e.getMessage() + " in dictionary: " + dictString, e);
        }
    }