/** * Removes the bean holder for the current request. Deletes all beans contained therein. * If response is provided, the beans are deserialized and stored. * */ public static void removeBeanHolder() { PortletRequestScopedBeanHolder bh = getBeanHolder(); if (bh != null) { bh.removeAll(); } holders.remove(); if (isTrace) { StringBuilder txt = new StringBuilder(80); txt.append("Removed portlet request bean holder."); txt.append(" ThreadId=").append(Thread.currentThread().getId()); LOG.trace(txt.toString()); } }