code: @SuppressWarnings("unchecked")
      private ResolvedViewable resolveAbsoluteViewable(final Viewable viewable, Class<?> resourceClass,
                                                       final MediaType mediaType,
                                                       final TemplateProcessor templateProcessor) {
          final Object resolvedTemplateObject = templateProcessor.resolve(viewable.getTemplateName(), mediaType);
  
          if (resolvedTemplateObject != null) {
              return new ResolvedViewable(templateProcessor, resolvedTemplateObject, viewable, resourceClass, mediaType);
          }
  
          return null;
      }
docs: Resolve given {@link Viewable viewable} with absolute template name using {@link MediaType media type} and
  {@link TemplateProcessor template processor}.
  
  @param viewable          viewable to be resolved.
  @param mediaType         media type of te output.
  @param resourceClass     resource class.
  @param templateProcessor template processor to be used.
  @return resolved viewable or {@code null} if the viewable cannot be resolved.