class DBUserInfoImpl extends AbstractUserGroupInfo implements UserInfo {

	@Override
	public Iterator<OrganizationalEntity> getMembersForGroup(Group group) {
		List<OrganizationalEntity> roles = new ArrayList<OrganizationalEntity>();
		Connection conn = null;
		PreparedStatement ps = null;
		ResultSet rs = null;

		try {
			conn = ds.getConnection();

			ps = conn.prepareStatement(this.config.getProperty(MEMBERS_QUERY));
			try {
				ps.setString(1, group.getId());
			} catch (ArrayIndexOutOfBoundsException ignore) {

			}
			rs = ps.executeQuery();
			while (rs.next()) {
				roles.add(TaskModelProvider.getFactory().newUser(rs.getString(1)));
			}
		} catch (Exception e) {
			logger.error("Error when fetching members of a group from db, groups id: ", group.getId(), e);
		} finally {
			if (rs != null) {
				try {
					rs.close();
				} catch (SQLException e) {
				}
			}
			if (ps != null) {
				try {
					ps.close();
				} catch (SQLException e) {
				}
			}
			if (conn != null) {
				try {
					conn.close();
				} catch (Exception ex) {
				}
			}
		}
		return roles.iterator();
	}

	public  DBUserInfoImpl(boolean activate);
	public  DBUserInfoImpl(Properties config);

}