Collection<String> branchNames = repository.getBranches();
List<BranchInfo> branchInfos = new ArrayList<BranchInfo>();
for (String branch : branchNames) {
branchInfos.add(new BranchInfo("default://"+branch+"@"+gitRepo, branch));
}
ExecutionResults results = new ExecutionResults();
results.setData("Branches", branchInfos);
return results;