public static ChessUser findUserByUserName(EntityManager manager,
			String name) {

		return (ChessUser) findByUniqueColumn(manager,
				ChessUser.class.getName(), "userName", name.toLowerCase(), true);
	}