} else {
category.isExclusive = Boolean.parseBoolean(labelForm.get("categoryIsExclusive"));
category.save();
}
IssueLabel label = new IssueLabel();
label.project = project;
label.name = labelForm.get("labelName");
label.color = labelForm.get("labelColor");
label.category = category;
if (label.exists()) {
return noContent();
} else {
label.save();
if (!request().accepts("application/json")) {
return created();
}