@SuppressWarnings({"unchecked"})
    private void createStorage() {
        textFieldStorage = new Storage(App.getConfigDirectoryPath() + STORAGE_FILENAME);
        textFieldValues = new HashMap<>();

        File storage = new File(App.getConfigDirectoryPath() + STORAGE_FILENAME);

        if (storage.exists()) {
            try {
                textFieldValues = (HashMap<StorageKey, String>) textFieldStorage.restore();
            } catch (StorageException ex) {
                System.out.println("Warning: Could not restore the configuration. Use defaults instead.");
            }
        } else {
            textFieldStorage.store(textFieldValues);
        }
    }