@Override
 public TokenAction create(final TokenAction.Type type, final User targetUser) {
   final TokenAction tokenAction = new TokenAction();
   tokenAction.setTargetUser(targetUser);
   tokenAction.setToken(generateToken());
   tokenAction.setType(type);
   final Date created = new Date();
   tokenAction.setCreated(created);
   tokenAction.setExpires(new Date(created.getTime() + VERIFICATION_TIME * 1000));
   tokenDao.save(tokenAction);
   return tokenAction;
 }
 @Override
 public void create(final TokenAction tokenAction) {
   tokenDao.save(tokenAction);
 }