for (Map.Entry<String, Set<String>> g : groups.get().entrySet()) {
ImmutableSet.Builder<Text> famBldr = ImmutableSet.builder();
for (String col : g.getValue()) {
famBldr.add(new Text(table.getColumns().stream()
.filter(x -> x.getName().equals(col)).collect(Collectors.toList())
<BUG>.get(0).getFamily()));
</BUG>
}
localityGroupsBldr.put(g.getKey(), famBldr.build());
}

for (Map.Entry<String, Set<String>> g : groups.get().entrySet()) {
ImmutableSet.Builder<Text> famBldr = ImmutableSet.builder();
for (String col : g.getValue()) {
famBldr.add(new Text(table.getColumns().stream()
.filter(x -> x.getName().equals(col)).collect(Collectors.toList())
.get(0).getFamily().get()));
}
localityGroupsBldr.put(g.getKey(), famBldr.build());
}
