private JsonElement serializeAsJson(BuildToBeInspected buildToBeInspected, RepairPatch patch) {
Build build = buildToBeInspected.getBuggyBuild();
JsonObject data = new JsonObject();
data.addProperty("dateStr", Utils.formatCompleteDate(new Date()));
this.addDate(data, "date", new Date());
data.addProperty("runId", buildToBeInspected.getRunId());
data.addProperty("buildId", build.getId());
data.addProperty("toolname", patch.getToolname());
data.addProperty("diff", patch.getDiff());
data.addProperty("filepath", patch.getFilePath());
data.addProperty("hostname", Utils.getHostname());
return data;
}