delete by URI before inserting; maintain uniqueness of URI!
catch NPE when inserting a text fragment
attempt to process binary content (the content type is often incorrect)
first as XML, and if there is a parsing error, as text
improved error reporting for attempts to insert non-document nodes