class GitWorkflowRepository extends FileBasedWorkflowRepository implements WorkflowRepository, FileBasedWorkflowRepositoryMXBean {

    public synchronized void setBranch(String branch) throws IOException, GitAPIException {
        this.branch = branch;
        if (isUp()) {
            updateLocalGitRepositories();
        }
    }

}