public Map<String, SubmoduleStatus> call() throws GitAPIException {checkCallable();try (SubmoduleWalk generator = SubmoduleWalk.forIndex(repo)) {if (!paths.isEmpty())generator.setFilter(PathFilterGroup.createFromStrings(paths));Map<String, SubmoduleStatus> statuses = new HashMap<>();while (generator.next()) {SubmoduleStatus status = getStatus(generator);statuses.put(status.getPath(), status);}return statuses;} catch (IOException | ConfigInvalidException e) {throw new JGitInternalException(e.getMessage(), e);}}

public override IDictionary<string, SubmoduleStatus> Call(){CheckCallable();try{SubmoduleWalk generator = SubmoduleWalk.ForIndex(repo);if (!paths.IsEmpty()){generator.SetFilter(PathFilterGroup.CreateFromStrings(paths));}IDictionary<string, SubmoduleStatus> statuses = new Dictionary<string, SubmoduleStatus>();while (generator.Next()){SubmoduleStatus status = GetStatus(generator);statuses.Put(status.GetPath(), status);}return statuses;}catch (IOException e){throw new JGitInternalException(e.Message, e);}catch (ConfigInvalidException e){throw new JGitInternalException(e.Message, e);}}
