LabelUtils.validateLabelName(label.getName(), existingLabels);
}
// check if label id reserved
if (ReservedLabels.contains(label.getId())) {
throw new ExistingLabelException("This is reserved label and can't be modified");
}
// check if label id exists
if (!existingLabels.containsId(label.getId())) {
throw new IllegalLabelException("Label does not exist");