// Obtain document data for the new file.
XInputStream data = stream;
// Fill argument structure...
InsertCommandArgument arg = new InsertCommandArgument();
arg.Data = data;
arg.ReplaceExisting = false;
// Execute command "insert".
m_helper.executeCommand( newContent, "insert", arg );