labels.add(label);
labelsOfUser.put(identity, labels);
logger.debug("New identity created and label added.");
addIdentityToUsersWithNickname(identity);
updateUsersInLabel(identity, label);
this.eventBus.post(new IdentityModifiedEvent(identity, IdentityModifiedEvent.IdentityModificationType.ADD));
updateIdentityInFile();
}
else{
//adds to the already existing identity if the label isn't present.
if(((labelsOfUser.get(identity)).contains(label))){