final String userName = blogSyncMgmt.getString(
BLOG_SYNC_EXTERNAL_BLOGGING_SYS_USER_NAME);
final String userPwd = blogSyncMgmt.getString(
BLOG_SYNC_EXTERNAL_BLOGGING_SYS_USER_PASSWORD);
final Post post = new MetaWeblogPost(article);
final MetaWeblog metaWeblog =
BlogFactory.getMetaWeblog(externalBloggingSys);
metaWeblog.setUserName(userName);
metaWeblog.setUserPassword(userPwd);
postId = metaWeblog.newPost(post);
post.setId(postId);
final JSONObject externalArticleSoloArticleRelation =
new JSONObject();
externalArticleSoloArticleRelation.put(
BLOG_SYNC_EXTERNAL_ARTICLE_IMPORTED, true);