private CommandResolution resolveCommand2(String name) throws CommandException, NullPointerException {
for (Compiler manager : activeCompilers.values()) {
for (String ext : manager.getExtensions()) {
Iterable<Resource> resources = context.loadResources(name + "." + ext, ResourceKind.COMMAND);
for (Resource resource : resources) {
CommandResolution resolution = resolveCommand(manager, name, resource);
if (resolution != null) {
return resolution;
}
}
}