Object text;
if (stylesheet.isFiltered())
{
// Load, filter and cache the resource. Then return the cached data.
ResourceInfo info = TextResourceFilter.getInstance(context).getOrCreateFilteredResource(context, path);
text = info.getText();
}
else
{
// Just load the data (not cached)
text = RendererUtils.loadResourceFile(context, path);