public Time getTime(String key)
    {
        byte[] dba = null;
        Time t = new Time();
        try
        {
            dba = Utils.object2Bytes(new Time(0, 0, 0));
            t = (Time) Utils.bytes2Object(prefs.getByteArray(key, dba));
        } catch (IOException ex)
        {
            Logger.getLogger(TimerPreferences.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex)
        {
            Logger.getLogger(TimerPreferences.class.getName()).log(Level.SEVERE, null, ex);
        }
        return t;
    }