layoutSet.getCompanyId(), portletId);
if (portlet != null) {
PortletDataHandler portletDataHandler =
portlet.getPortletDataHandler();
if (portletDataHandler != null) {
<BUG>String data = StringPool.BLANK;
data = portletDataHandler.exportData(
layoutSet.getCompanyId(), layoutSet.getGroupId());

el = root.addElement("portlet-data");

el.addAttribute("portlet-id", portletId);
el.addElement("data").addCDATA(data);
}</BUG>
}

layoutSet.getCompanyId(), portletId);
if (portlet != null) {
PortletDataHandler portletDataHandler =
portlet.getPortletDataHandler();
if (portletDataHandler != null) {
String data = null;
try {
PortletPreferencesImpl prefsImpl = (PortletPreferencesImpl)PortletPreferencesSerializer.fromDefaultXML(prefs.getPreferences());
data = portletDataHandler.exportData(
layoutSet.getCompanyId(), layoutSet.getGroupId(), portletId, prefsImpl);
