*/
public WeblogBookmarkFolder getBookmarkFolder(String folderName) {
WeblogBookmarkFolder ret = null;
try {
Weblogger roller = WebloggerFactory.getWeblogger();
BookmarkManager bmgr = roller.getBookmarkManager();
if (folderName == null || folderName.equals("nil") || folderName.trim().equals("/")) {
return bmgr.getRootFolder(this);
} else {
return bmgr.getFolder(this, folderName);
}
} catch (WebloggerException re) {
log.error("ERROR: fetching folder for weblog", re);
}
return ret;