*
* @return The {@code Commit}.
* @throws Exception If an error occurred while creating the {@code Commit}.
*/
public static Commit build(String path, String diff, String message) throws Exception {
CommitHandler commitHandler = new CommitHandler(new CommitImpl(path, diff, message));
JsopParser jsopParser = new JsopParser(path, diff, commitHandler);
jsopParser.parse();
return commitHandler.getCommit();
}