if (gitSegment != null) {
DeleteBranchCommand cc = git.branchDelete();
cc.setBranchNames(gitSegment);
// TODO: the force flag should be passed in the API call
cc.setForce(true);
cc.call();
// TODO: do something with the result
return true;
}
return false;