Commiting the files in the java structure