public boolean isConnectedToProject() {
   if (!user.getProjects().isEmpty()
       || !user.getProjectsMaster().isEmpty()
       || !user.getProjectsOwner().isEmpty()) {
     return true;
   }
   return false;
 }
 private void initUserRoles() {
   userRoles = new ArrayList<RoleWrapper>();
   for (Role r : userFacade.getAllRoles()) {
     if (user.getRoles().contains(r)) {
       userRoles.add(new RoleWrapper(r, Boolean.TRUE));
     } else {
       userRoles.add(new RoleWrapper(r, Boolean.FALSE));
     }
   }
 }
 public String getPassword() {
   return user.getPassword();
 }
 public String getFullName() {
   return user.getFullName();
 }
 public String getLastName() {
   return user.getLastName();
 }
 public String getFirstName() {
   return user.getFirstName();
 }
 public String getEmail() {
   return user.getEmail();
 }
 public UserWrapper(User u, IUserFacadeLocal uf) {
   this.user = u;
   this.oldPassword = u.getPassword();
   this.userFacade = uf;
   initUserRoles();
 }