public boolean isPageExist(String page) throws IOException {
        StringBuilder url = new StringBuilder(query);
        url.append("action=query&prop=info&intoken=edit&inprop=protection%7Cdisplaytitle&titles=File:");
        url.append(URLEncoder.encode(page, "UTF-8"));
        //url.append(page);
        String line = fetch(url.toString(), "getPageInfo");
        boolean exists = !line.contains("missing=\"\"");
        log(Level.INFO, "Status for File:" + page + ": " + exists, "isPageExist");
        return exists;
    }