BPMN2SyntaxChecker checker = new BPMN2SyntaxChecker(json, preprocessingData, profile, uuid);
checker.checkSyntax();
resp.setCharacterEncoding("UTF-8");
resp.setContentType("application/json");
if(checker.errorsFound()) {
resp.getWriter().write(checker.getErrorsAsJson().toString());
}
}
}