@Override
<BUG>public void execute(ComputationContext context) {
DbSession session = dbClient.openSession(false);</BUG>
try {
<BUG>List<ComponentDto> modules = dbClient.componentDao().selectModulesFromProjectKey(session, context.getRoot().getKey());
</BUG>
Map<String, ComponentDto> modulesByKey = Maps.uniqueIndex(modules, new Function<ComponentDto, String>() {
@Override
public String apply(@Nonnull ComponentDto input) {
return input.key();

@Override
public void execute() {
DbSession session = dbClient.openSession(false);
try {
List<ComponentDto> modules = dbClient.componentDao().selectModulesFromProjectKey(session, treeRootHolder.getRoot().getKey());
Map<String, ComponentDto> modulesByKey = Maps.uniqueIndex(modules, new Function<ComponentDto, String>() {
@Override
public String apply(@Nonnull ComponentDto input) {
return input.key();
