protected void initParameters() {
super.initParameters();
Document doc = getSourceDocument();
if (doc != null) {
NewsWrapper news = new NewsWrapper(doc, getLogger());
setParameter(NEWS_WRAPPER, news);
setParameter(INCLUDE_ITEM_NUMBER, new Short(news.getIncludeItemNumber()));
setParameter(SHOW_ALL_LANGUAGES, Boolean.valueOf(news.showAllLanguages()));
setParameter(TYPE, news.getType());
setParameter(HREF, news.getHref());
List numbers = new ArrayList();
for (int i = 1; i <= 10; i++) {
numbers.add(new Integer(i));
}