class DBUserInfoImpl extends AbstractUserGroupInfo implements UserInfo {

    @Override
    public String getEntityForEmail(String email) {
        Connection conn = null;
        PreparedStatement ps = null;
        ResultSet rs = null;
        String displayName = null;
        try {
            conn = ds.getConnection();

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

            ps.setString(1, email);
            rs = ps.executeQuery();
            if (rs.next()) {
                displayName = rs.getString(1);
            }
        } catch (Exception e) {
            logger.error("Error when looking up id for email in db, parameter: " + email, 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 displayName;
    }

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

}