// The rule is added to the store and to the recipe
if ((kres_syntax != null) & (description != null)) {
// Get the rule
AddRule inrule = new AddRule(ruleStore);
boolean ok = inrule.addRule(IRI.create(rule), kres_syntax, description);
if (!ok) {
log.error("Problem to add: " + rule);
ResponseBuilder rb = Response.status(Status.CONFLICT);
MediaType mediaType = MediaTypeUtil.getAcceptableMediaType(headers, null);
if (mediaType != null) rb.header(HttpHeaders.CONTENT_TYPE, mediaType);