Extended document with Cloneable

Added a clone method for deep copying of documents
Refs JAVA-927