if (errorMessagesJsonArray != null) {
errorMessages.addAll(JsonParseUtil.toStringCollection(errorMessagesJsonArray));
}
final JSONObject errorJsonObject = jsonObject.optJSONObject("errors");
if (errorJsonObject != null) {
final JSONArray valuesJsonArray = errorJsonObject.toJSONArray(errorJsonObject.names());
if (valuesJsonArray != null) {
errorMessages.addAll(JsonParseUtil.toStringCollection(valuesJsonArray));
}
}
return errorMessages;