*/
private ResolvedViewable resolve(final Viewable viewable, final Template template) {
if (viewable instanceof ResolvedViewable) {
return (ResolvedViewable) viewable;
} else {
final ViewableContext viewableContext = getViewableContext();
final Set<TemplateProcessor> templateProcessors = getTemplateProcessors();
final List<MediaType> producibleMediaTypes = TemplateHelper
.getProducibleMediaTypes(requestProvider.get(), extendedUriInfoProvider.get(), null);