// releaseSession()
try {
UserSession userSession = consumerEnvironment.getSessionHandler().getUserSession(portletKey.getProducerId(), user.getUserID());
PortletDescription portletDescription = producer.getPortletDescription(portletKey.getPortletHandle());
GroupSession groupSession = userSession.getGroupSession(portletDescription.getGroupID());
PortletSession portletSession = groupSession.getPortletSession(portletInstanceKey);
SessionContext sessionContext = portletSession.getSessionContext();
WSRPPortlet wsrpportlet = consumerEnvironment.getPortletRegistry().getPortlet(portletKey);
PortletDriver portletDriver = consumerEnvironment.getPortletDriverRegistry().getPortletDriver(wsrpportlet);
if (sessionContext != null) {
String[] sessions = new String[1];