}
Object template = findTemplate(context);
if (template != null) {
if (content != null) {
context = new FetcherStringFinder(new WrappedFetcher(content, underlying));
}
Templater templater = (Templater)context.getObject(Templater.TEMPLATER);
autoTemplate(context, templater, collector, MojasefConstants.PROLOGUE_TEMPLATE);
templater.expandTemplate(context, template, collector);
autoTemplate(context, templater, collector, MojasefConstants.EPILOGUE_TEMPLATE);