InitParam initParam = portlet.addInitParam("testparam");
initParam.setParamValue("test value");
initParam.addDescription(lang).setDescription("This is a test portlet parameter");
Preferences prefs = portlet.getPortletPreferences();
Preference pref = prefs.addPreference("preference 1");
pref.addValue("value 1");
pref.addValue("value 2");
Language language = portlet.addLanguage(Locale.getDefault());
language.setTitle("Portlet 1");
language.setShortTitle("Portlet 1");