public static String convertToString(InputStreamReader isr) {
        String sent = "";
        try {
            BufferedReader br = new BufferedReader(isr);
            String line = br.readLine();

            while (line != null) {
                String str = line;
                //sb.append(str);
                line = br.readLine();
                sent = sent + str;
            }
            br.close();

        } catch (Exception e) {
            System.err.println(e.getCause());
            System.err.println(e);
            return "";
        }
        return sent;
    }