JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
JGitFlow flow = initCommand.setDirectory(git.getRepository().getWorkTree()).call();
ReleaseContext ctx = new ReleaseContext(projectRoot);
ctx.setInteractive(false).setNoBuild(true);
FlowReleaseManager relman = getReleaseManager();
relman.start(ctx,projects,session);