Iterator<String> iter = this.getContentIds().iterator();
List<Content> publishedContents = new ArrayList<Content>();
IContentManager contentManager = (IContentManager) this.getContentManager();
while (iter.hasNext()) {
String contentId = (String) iter.next();
Content contentToPublish = contentManager.loadContent(contentId, false);
String[] msgArg = new String[1];
if (null == contentToPublish) {
msgArg[0] = contentId;
this.addActionError(this.getText("error.content.contentToPublishNull", msgArg));
continue;