private static JsonObject getJsonError(OperationResult operationResult) { JsonObject jsonObject = new JsonObject(); jsonObject.addProperty("errorIdentification", operationResult.getErrorIdentification()); jsonObject.addProperty("errorDescription", operationResult.getErrorDescription()); return jsonObject; }