HttpResponseMessage response = f4j.sendGetRequest(listOfMethods);
String respStr = response.getResponse();
if (respStr == null || respStr.trim().equals("")) {
throw new FB4JavaException();
}
int rslt = 0;
try {
rslt = Integer.parseInt(respStr);
} catch (Exception e) {
JSONObject errorMsg = response.toJSONObject();
throw new FB4JavaException(errorMsg.getInt("error_code"), errorMsg.getString("error_msg"));
}
return rslt;
}