String account = req.getParameter("account");
UserAccount user = UserAccountServices.getInstance().findUserAccountByID(account);
if(user==null) {
user = new UserAccount(account, account);
}
UserProfile newProfile = new UserProfile(
req.getParameter("profile.employeeId"),
req.getParameter("profile.name"),
req.getParameter("profile.email"),
req.getParameter("profile.mobile")
);
newProfile.setFirstName(req.getParameter("profile.firstName"));
newProfile.setLastName(req.getParameter("profile.lastName"));
user.setProfile(newProfile);
user.setId(0);
UserAccount newAccount = user;
// UserAccount newAccount = new UserAccount(