private static Camera restorecam() {
        Class<? extends Camera> ct = camtypes.get(Utils.getpref("defcam",
                "border"));
        if (ct == null)
            return (new BorderCam());
        String[] args = (String[]) Utils.deserialize(Utils.getprefb("camargs",
                null));
        if (args == null)
            args = new String[0];
        try {
            return (makecam(ct, args));
        } catch (ClassNotFoundException e) {
            return (new BorderCam());
        }
    }