public void set(Protocol con, Component widget, JSONObject obj, Map styleMap) throws JSONException {
        if (obj.has("item")) {
            JSONArray array = obj.getJSONArray("item");
            for (int j = 0; j < array.length(); j++) {
                JSONObject itemObj = array.getJSONObject(j);
                String path = "";
                if (itemObj.has("path")) {
                    path = itemObj.getString("path");
                }

                String filename = "";
                if (itemObj.has("filename")) {
                    filename = itemObj.getString("filename");
                }

                String description = "";
                if (itemObj.has("description")) {
                    description = itemObj.getString("description");
                }

                int retry = 0;
                if (itemObj.has("retry")) {
                    retry = itemObj.getInt("retry");
                }

                if (!path.isEmpty() && !filename.isEmpty()) {
                    if (con.getServerType().startsWith("glserver")) {
                        con.addDLRequest(path, filename, description, retry);
                    }
                }
            }
        }
    }