sb.append(in.getName().getBaseName());
String tmpPath = sb.toString().replace('\\', '/');
try {
localCopy = (LocalFile) VFS.getManager().resolveFile(tmpPath);
localCopy.copyFrom(in, new FileTypeSelector(FileType.FILE));
localCopy.close();
} catch (FileSystemException exc) {
exc.printStackTrace();
throw new Docx4JException(
"Could not create a temporary local copy", exc);