if (componentIds.isEmpty()) {
return Collections.emptySet();
}
String sql;
Map<String, Object> params;
<BUG>List <List<Integer>> componentIdsPartition = Lists.partition(newArrayList(componentIds), 1000);
if (userId == null) {</BUG>
sql = "keepAuthorizedComponentIdsForAnonymous";
params = ImmutableMap.of("role", role, "componentIds", componentIdsPartition);
} else {

if (componentIds.isEmpty()) {
return Collections.emptySet();
}
String sql;
Map<String, Object> params;
List<List<Integer>> componentIdsPartition = Lists.partition(newArrayList(componentIds), 1000);
if (userId == null) {
sql = "keepAuthorizedComponentIdsForAnonymous";
params = ImmutableMap.of("role", role, "componentIds", componentIdsPartition);
} else {
