private UserBean createUserBean(ResultSet result){
         try {
            //gebe null zurück, falls kein User vorhanden ist
            if (result == null || result.getFetchSize() < 0){
                return null;
            }else{
                UserBean user = new UserBean();
                        user.setId(result.getInt("id"));
                        user.setActive(result.getInt("active") == 1);
                        user.setActivationKey(result.getInt("activationKey"));
                        user.setEmail(result.getString("email"));
                        user.setName(result.getString("name"));
                        user.setPassword(result.getString("password"));
                        user.setRole(result.getString("role"));
                    return user;
            }
        } catch (SQLException ex) {
            Logger.getLogger(FilmothekModel.class.getName()).log(Level.SEVERE, null, ex);
            return null;
        }
    }