this.getLogger().error("Portlet handle not configured in wsrp coplet " + copletData.getId());
return;
}
// get the wsrp portlet
final PortletKey portletKey = new PortletKeyImpl(portletHandle, producerId);
WSRPPortlet wsrpportlet = this.consumerEnvironment.getPortletRegistry().getPortlet(portletKey);
if ( wsrpportlet == null ) {
wsrpportlet = new WSRPPortletImpl(portletKey);
final PortletContext portletContext = new PortletContext(null, portletKey.getPortletHandle(), null);
wsrpportlet.setPortletContext(portletContext);
try {
consumerEnvironment.getPortletRegistry().addPortlet(wsrpportlet);
} catch (WSRPException we) {
this.getLogger().error("Exception adding wsrp portlet.", we);