Updated to use git API's new interface, which now returns Java objects and exceptions  instead of Responses, including modification of unit tests.