public void save(HttpServletRequest req, String uuid, String json, String svg, IDiagramProfile profile, Boolean autosave) {
String ext = profile.getSerializedModelExtension();
String model = "";
try {
IDiagramMarshaller marshaller = profile.createMarshaller();
model = marshaller.parseModel(json);
} catch(Exception e) {
_logger.error(e.getMessage(), e);
}
writeFile(model, _repositoryPath + "/" + uuid + "." + ext);
writeFile(json, _repositoryPath + "/" + uuid + ".json");