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