@Override
public void addTag(final UUID objectId, final ObjectType objectType, final UUID tagDefinitionId, final CallContext context) throws TagApiException {
final InternalCallContext internalContext = internalCallContextFactory.createInternalCallContext(objectId, objectType, context);
final TagModelDao tag = new TagModelDao(context.getCreatedDate(), tagDefinitionId, objectId, objectType);
try {
tagDao.create(tag, internalContext);
} catch (TagApiException e) {
if (ErrorCode.TAG_ALREADY_EXISTS.getCode() != e.getCode()) {
throw e;
}
}
}