private BundleResponse GetBundleResponse(Bundle bundle, BundleContext bundleContext)
{
BundleResponse response = bundle.CacheLookup(bundleContext);
if (response == null || bundleContext.EnableInstrumentation)
{
response = bundle.GenerateBundleResponse(bundleContext);
bundle.UpdateCache(bundleContext, response);
}
return response;
}