if (category.exists()) {
category = IssueLabelCategory.findBy(category);
} else {
category.isExclusive = Boolean.parseBoolean(labelForm.get("categoryIsExclusive"));
category.save();
}
IssueLabel label = new IssueLabel();
label.project = project;
label.name = labelForm.get("labelName");