class DBUserInfoImpl extends AbstractUserGroupInfo implements UserInfo {

	@Override
	public String getEmailForEntity(OrganizationalEntity entity) {
		Connection conn = null;
		PreparedStatement ps = null;
		ResultSet rs = null;
		String emailAddress = null;
		try {
			conn = ds.getConnection();

			ps = conn.prepareStatement(this.config.getProperty(EMAIL_QUERY));

			ps.setString(1, entity.getId());
			rs = ps.executeQuery();
			if (rs.next()) {
				emailAddress = rs.getString(1);
			}
		} catch (Exception e) {
			logger.error("Error when fetching email address from db for entity {}", entity.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 emailAddress;
	}

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

}