String title = dialog.fName;
parent = dialog.getFolder();
URI uriObj = new URI(dialog.fLink.trim());
IFeedDAO feedDAO = DynamicDAO.getDAO(IFeedDAO.class);
/* Check if a Feed with the URL already exists */
FeedReference feedRef = feedDAO.loadReference(uriObj);
/* Create a new Feed then */
if (feedRef == null) {
IFeed feed = Owl.getModelFactory().createFeed(null, uriObj);
feed = feedDAO.save(feed);
}
/* Create the BookMark */
FeedLinkReference feedLinkRef = new FeedLinkReference(uriObj);
IBookMark bookmark = Owl.getModelFactory().createBookMark(null, parent, feedLinkRef, title, fPosition, fPosition != null ? true : null);