Implement the git-receive-pack process in Java