class DefaultSessionService implements SessionService {

	@Override
	public Group getDefaultGroup() {
		Group defaultGroup = null;
		User user = getUser();
		
		for (UserGroup userGroup : user.getUserGroups()) {
			
			if (userGroup.getMajor()) {
				defaultGroup = userGroup.getGroup();
				break;
			}
		}
		
		return defaultGroup;
	}

}