Added a print line in Document.java