class GitCheckout {

  public GitCheckoutResponse checkout(File repositoryPath, GitCheckoutOptions options, Ref branch)
      throws IOException, JavaGitException {
    CheckUtilities.checkFileValidity(repositoryPath);
    CheckUtilities.validateArgumentRefType(branch, RefType.BRANCH, "Branch name");
    IClient client = ClientManager.getInstance().getPreferredClient();
    IGitCheckout gitCheckout = client.getGitCheckoutInstance();
    return gitCheckout.checkout(repositoryPath, options, branch);
  }

}