Java Commit