String tableName = AccumuloTable.getFullTableName(schema, table);
LOG.info("Getting tablet splits for table %s", tableName);
Collection<Range> rowIdRanges = getRangesFromDomain(rowIdDom, serializer);
List<TabletSplitMetadata> tabletSplits = new ArrayList<>();
if (AccumuloSessionProperties.isOptimizeIndexEnabled(session)) {
<BUG>Authorizations scanAuths = getScanAuthorizations(session, schema, table);

IndexLookup sIndexLookup = new IndexLookup(conn, conf, scanAuths);</BUG>
if (sIndexLookup.applyIndex(schema, table, session, constraints, rowIdRanges,
tabletSplits, serializer)) {

String tableName = AccumuloTable.getFullTableName(schema, table);
LOG.info("Getting tablet splits for table %s", tableName);
Collection<Range> rowIdRanges = getRangesFromDomain(rowIdDom, serializer);
List<TabletSplitMetadata> tabletSplits = new ArrayList<>();
if (AccumuloSessionProperties.isOptimizeIndexEnabled(session)) {
sIndexLookup.setAuths(getScanAuthorizations(session, schema, table));
if (sIndexLookup.applyIndex(schema, table, session, constraints, rowIdRanges,
tabletSplits, serializer)) {
