public static void fillId(TagDao tagDao, UserDao userDao, UserTag userTag)
throws NoSuchUserException, NoSuchTagException,
NoSuchUserTagException, MissingIdException {
if (hasMissingId(userTag) == true) {
User user = userTag.getUser();
Tag tag = userTag.getTag();
fillId(userDao, user);
fillId(tagDao, tag);
UserTag obj = getUserTag(tagDao, user, tag);
if (obj == null) {
throw new NoSuchUserTagException("no such userTag: user="
+ user.getUsername() + ",tag=" + tag.getLabel());
}
userTag.setId(obj.getId());
}
}