w new ConversionException(e.getMessage(), e);
        }

        // returns the new object
        return calendar;

}</pre></div><p>Note 1: remember that some <i>DateFormat</i> implementations
are not thread-safe, therefore don't put your formatter as a member of your
converter.</p><p>Note 2: this implementation <b>will</b> convert other types
of Calendar's to GregorianCalendar after save/load. If this is not what you
want, change your <i>canConvert</i> method to return <i>true</i> only if
<i>class</i> equ