public static EditableDocument newDocument ( String name1 , Object value1 , String name2 , Object value2 ) { return new DocumentEditor ( new BasicDocument ( name1 , value1 , name2 , value2 ) , DEFAULT_FACTORY ) ; }
Create a new editable document initialized with two fields that can be used as a new document entry in a SchematicDb or as nested documents for other documents .