String ext = profile.getSerializedModelExtension();
String preProcessingParam = req.getParameter("pp");
String model = "";
try {
IDiagramMarshaller marshaller = profile.createMarshaller();
model = marshaller.parseModel(json, preProcessingParam);
} catch(Exception e) {
_logger.error(e.getMessage(), e);
}
writeFile(model, _repositoryPath + "/" + uuid + "." + ext);
writeFile(json, _repositoryPath + "/" + uuid + ".json");