class FileHelper {

    public static File getItemFile(Context context, Configuration.Item item) {
        if (item.isDownloadable()) {
            try {
                return new File(context.getExternalFilesDir(null), java.net.URLEncoder.encode(item.location, "UTF-8"));
            } catch (UnsupportedEncodingException e) {
                e.printStackTrace();
                return null;
            }
        } else {
            return null;
        }
    }

}