if (response instanceof IMetaDataBufferingWebResponse)
{
WebResponse originalResponse = (WebResponse) cycle.getOriginalResponse();
if (originalResponse != response)
{
IMetaDataBufferingWebResponse bufferingWebResponse = (IMetaDataBufferingWebResponse) response;
bufferingWebResponse.writeMetaData(originalResponse);
}
}
}