}
// FIXME: index -1 wanneer verkeerde file sep!
entry.setName(entry.getName().substring(entry.getName().lastIndexOf("/") + 1, entry.getName().length()));
// add to tar. just a file, no need for recursion ('false')
archive.writeEntry(entry, false);
}
else
{
// entry is a directory, so tar the content :)