templateContext = FastMap.newInstance();
}
Writer outWriter = new StringWriter();
GenericValue view = (GenericValue)context.get("subContentDataResourceView");
if (view != null && view.containsKey("contentId")) {
contentId = view.getString("contentId");
}
try {
ContentWorker.renderContentAsText(dispatcher, delegator, contentId, outWriter, templateContext, locale, mimeTypeId, null, null, true);