* @param user to persist
* @return the persisted user (usually, with an autoincrement)
*/
public static User persist(User user) {
DaoFunction.persistFunction().apply(user);
Group group = new Group();
group.setGroupCode(DEFAULT_GROUP);
group.setUsername(user.getUsername());
DaoFunction.persistFunction().apply(group);
return user;
}