portletEntity.setPortletDefinition(portletDefinition);
portletEntity.setPortletApplicationEntity(portAppEnt);
portletEntity.setUserLayout(pcs.getUserPreferencesManager().getUserLayoutManager().getUserLayout());
portletEntity.setChannelDescription((IUserLayoutChannelDescription)pcs.getUserPreferencesManager().getUserLayoutManager().getNode(sd.getChannelSubscribeId()));
portletEntity.setPerson(sd.getPerson());
portletEntity.loadPreferences();
// Add the user information into the request See PLT.17.2.
Map userInfo = cd.getUserInfo();
if (userInfo == null) {