final PortletApplicationEntityImpl portAppEnt = new PortletApplicationEntityImpl();
portAppEnt.setId(portletDefinition.getId().toString());
portAppEnt.setPortletApplicationDefinition(portletDefinition.getPortletApplicationDefinition());
// Create the PortletEntity
PortletEntityImpl portletEntity = new PortletEntityImpl();
portletEntity.setId(sd.getChannelPublishId());
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) {