Delicious dConn = new Delicious(dUsername, dPassword);
logger.debug("created an access object to del.icio.us");
List posts = dConn.getAllPosts();
if (posts != null && posts.size() > 0) {
for(Iterator it = posts.iterator(); it.hasNext();) {
Post aPost = (Post) it.next();
Bookmark bmark = createBookmark(aPost);
int bmid = bmarkManager.getBookmarkId(gUser,bmark.getLink().getUrl());
if(bmid <= 0){
try {
bmid = bmarkManager.addBookmark(bmark);