Adapted to use gerrit REST api