// 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) {