// - Import / export -------------------------------------------------------
// -------------------------------------------------------------------------
@Override
public InputStream getInputStream() throws IOException {
BookmarkBuilder builder;
ByteArrayOutputStream stream;
builder = BookmarkManager.getBookmarkWriter(stream = new ByteArrayOutputStream());
try {
builder.startBookmarks();
builder.addBookmark(bookmark.getName(), bookmark.getLocation());
builder.endBookmarks();
}
// If an exception occured, we have to look for its root cause.
catch(Throwable e) {
Throwable e2;