/*
* We need to do some formatting on the response
*/
Map<String,Object> response = new HashMap<String,Object>();
ModelInstance modelInstance = model.getModelInstance();
response.put("data", modelInstance.getData());
response.put("id", modelInstance.getData().get("id")); // TODO: We should have a way to get id's named other than "id"
response.put("success", true);
printStream.print(StringUtilities.json(response));
printStream.close();
}