import org.mxchange.jusercore.exceptions.UserNotFoundException;
import org.mxchange.jusercore.exceptions.UserStatusConfirmedException;
import org.mxchange.jusercore.exceptions.UserStatusLockedException;
-import org.mxchange.jusercore.model.user.LoginUser;
import org.mxchange.jusercore.model.user.User;
import org.mxchange.jusercore.model.user.UserSessionBeanRemote;
import org.mxchange.jusercore.model.user.register.UserRegistrationSessionBeanRemote;
String confirmationKey = this.registerBean.generateConfirmationKey(user);
// Get managed instance
- User managedUser = this.getEntityManager().find(LoginUser.class, user.getUserId());
+ User managedUser = this.getManagedUser(user);
// Set it in user
managedUser.setUserConfirmKey(confirmationKey);