*/
public static News[] getSiteNews(Content container) {
Set<News> news = new HashSet();
for (Content content : container.getDescendants(Content.class)) {
if (content.isVisible()) {
News candidate = null;
if (content instanceof News) {
candidate = (News) content;
}
if (content instanceof Reference
&& ((Reference) content).getContent() instanceof News) {
candidate = (News) ((Reference) content).getContent();
}
if (content instanceof Folder
&& ((Folder) content).getContent() instanceof News) {
candidate = (News) ((Folder) content).getContent();
}
if (candidate != null && candidate.getDate() != null) {
news.add(candidate);
}
}
}
List<News> result = new ArrayList(news);