private FileAction doAdd(boolean force) throws VltException {
assert entry == null;
entry = parent.getEntries().update(getName(), null, null);
VltEntryInfo work = entry.create(VltEntryInfo.Type.WORK);
try {
work.update(file, true);
} catch (IOException e) {
throw exception("Error while adding file", e);
}
String contentType = MimeTypes.getMimeType(file.getName(), MimeTypes.APPLICATION_OCTET_STREAM);
work.setContentType(contentType);