if (BlogSync.BLOG_SYNC_CSDN_BLOG.equals(externalSysName)) {
return new CSDNBlog();
} else if (BlogSync.BLOG_SYNC_CNBLOGS.equals(externalSysName)) {
return new CnBlogsBlog();
} else if (BlogSync.BLOG_SYNC_BLOGJAVA.equals(externalSysName)) {
return new BlogJavaBlog();
} else {
throw new IllegalArgumentException("Not supported external blogging system["
+ externalSysName + "]");
}
}