//if (container != null) {
// token = container.getToken();
//}
try {
TwitterVO twitterVO = configService.getTwitterCredentials();
List<String> list = new ArrayList<String>();
Twitter twitter = new Twitter(twitterVO.getTwitteruser(),twitterVO.getTwitterpswd());
List<Status> statuses = twitter.getFriendsTimeline();
// System.out.println("Showing friends timeline.");
for (Status status : statuses) {
//System.out.println(status.getUser().getName() + ":" + status.getText());
list.add("<img src=\"" + status.getUser().getProfileImageURL() + "\" height=\"48\" width=\"48\" align=\"left\"><strong>" + status.getUser().getName() + "</strong>:" + status.getText());
}
twitterVO.setMytweets(list);
request.setAttribute(BaseConstants.TWITTER_VO, twitterVO);
}
catch (Exception e) {
sb.append(ap.getValue("core.errorcode.00714"));//Problem encountered while retrieving class news
}