" WHERE " + (DebugConfig.enableMailboxGroup ? "mailbox_id = ? AND " : "") + "index_id IN " + DbUtil.suitableNumberOfVariables(info.sharedIndex));
" WHERE " + IN_THIS_MAILBOX_AND + "index_id IN " + DbUtil.suitableNumberOfVariables(info.sharedIndex));
    public static void resolveSharedIndex(Mailbox mbox, PendingDelete info) throws ServiceException {        if (info.sharedIndex == null || info.sharedIndex.isEmpty())            return;                Connection conn = mbox.getOperationConnection();        PreparedStatement stmt = null;        ResultSet rs = null;        try {            stmt = conn.prepareStatement("SELECT index_id FROM " + getMailItemTableName(mbox) +                    " WHERE " +                    (DebugConfig.enableMailboxGroup ? "mailbox_id = ? AND " : "") +                    "index_id IN " + DbUtil.suitableNumberOfVariables(info.sharedIndex));            int attr = 1;            if (DebugConfig.enableMailboxGroup)                stmt.setInt(attr++, mbox.getId());            for (int id : info.sharedIndex)            	stmt.setInt(attr++, id);            rs = stmt.executeQuery();            while (rs.next())                info.sharedIndex.remove(rs.getInt(1));            info.indexIds.addAll(info.sharedIndex);            info.sharedIndex.clear();        } catch (SQLException e) {            throw ServiceException.FAILURE("resolving shared index entries: " + info.rootId, e);        } finally {            DbPool.closeResults(rs);            DbPool.closeStatement(stmt);        }    }