if(args.length > 3){ // if a blog handle has been provided replace the default one.
app.setHomepageHandle(args[3]);
}
try {
BlogService BlogService = app.getBlogService();
EntityList<Blog> blogs = BlogService.getAllBlogs();
for (Iterator<Blog> iter = blogs.iterator(); iter.hasNext(); ) {
System.out.println(iter.next().getTitle());
}
} catch (ClientServicesException e) {
e.printStackTrace();