Committing from java