insertDocument(tempFile.getAbsolutePath());
} else {
PropertyValue[] loadProps = new PropertyValue[2];
loadProps[0] = new PropertyValue();
loadProps[0].Name = "InputStream"; //$NON-NLS-1$
loadProps[0].Value = new ByteArrayXInputStreamAdapter(
inputStream, null);
loadProps[1] = new PropertyValue();
loadProps[1].Name = "FilterName"; //$NON-NLS-1$
loadProps[1].Value = filter