public static EditableDocument newDocument ( Document original ) { BasicDocument newDoc = new BasicDocument ( ) ; newDoc . putAll ( original ) ; return new DocumentEditor ( newDoc , DEFAULT_FACTORY ) ; }
Create a new editable document that is a copy of the supplied document .