{
PortletResponseImpl resp = ( PortletResponseImpl ) response;
PortletDescriptor descr = proxy.getDescriptor( );
CacheDescriptor cache = descr.getCacheDescriptor( request.getMode( ) );
CacheRegion region = getCacheService( proxy ).getRegion( descr.getName( ), true );
CacheableImpl cacheable = new CacheableImpl( id, resp.getBuffer( ).toString( ), 1000 * cache.getExpires( ) );
if ( debug )
{
__log.debug( "Caching portlet content:" + id );
}