in DeliveryApi/ApiHandlers/src/com/ilmlf/delivery/api/handlers/PopulateFarmDb.java [229:243]
public String buildReturnJson(String requestType, String physicalResourceId, boolean runScript) {
JSONObject retJson = new JSONObject();
if (requestType != null) {
retJson.put("RequestType", requestType);
}
if (REQUEST_UPDATE.equals(requestType) || REQUEST_DELETE.equals(requestType)) {
// Updates and Deletes need to return the same Physical Id they had
retJson.put(PHYS_RESOURCE_ID, physicalResourceId);
}
retJson.put(SCRIPT_RUN, Boolean.toString(runScript));
System.out.println(retJson.toString());
return retJson.toString();
}