{
return getRenderer(((PortletResponse)response).getResponse());
}
else if (response instanceof ResourceResponse)
{
ResourceResponse resourceResponse = (ResourceResponse)response;
//
if (resourceResponse.getResponse() instanceof ContentResponse)
{
return new ResourceRenderer((ContentResponse)resourceResponse.getResponse(), sendNoContentResponseOnEmptyResource);
}
else
{
return getRenderer(((PortletResponse)response).getResponse());
}