if (null != jsonobject && jsonobject.has("status")) {
if (jsonobject.getString("status").equalsIgnoreCase("nok")) {
if (jsonobject.getString("reason").equalsIgnoreCase("Invalid application signature.")) {
throw new InvalidApplicationSignatureException();
} else if (jsonobject.getString("reason").contains("too many requests") || jsonobject.getString("reason").contains("Daily limit exceeded")) {
throw new TooManyRequestsException();
}
}
}
return jsonobject;