if (ioService != null) {
ProjectService projectService = CDIUtils.createBean(ProjectService.class, beanManager);
RepositoryService repositoryService = CDIUtils.createBean(RepositoryService.class, beanManager);
logger.debug("RepositoryService " + repositoryService);
if (repositoryService != null) {
Repository repo = repositoryService.getRepository(repository);
Map<String, Object> config = new HashMap<String, Object>();
config.put("branch", branchToUpdate + "-" + version);
repo = repositoryService.updateRepository(repo, config);
logger.debug("Updated repository " + repo);
// update all pom.xml files of projects on the dev branch
Set<Project> projects = getProjects(repo, ioService, projectService);