portlet.setLayoutY(23.45F);
portlet.setLayoutZ(34.56F);
portlet.setLayoutWidth(45.67F);
portlet.setLayoutHeight(56.78F);
List preferences = new ArrayList(2);
FragmentPreference preference = pageManager.newFragmentPreference();
preference.setName("pref0");
preference.setReadOnly(true);
List preferenceValues = new ArrayList(2);
preferenceValues.add("pref0-value0");
preferenceValues.add("pref0-value1");
preference.setValueList(preferenceValues);
preferences.add(preference);
preference = pageManager.newFragmentPreference();
preference.setName("pref1");
preferenceValues = new ArrayList(1);
preferenceValues.add("pref1-value");
preference.setValueList(preferenceValues);
preferences.add(preference);
portlet.setPreferences(preferences);
root.getFragments().add(portlet);
portlet = pageManager.newPortletFragment();
portlet.setName("some-app::SomePortlet");