code: @Override
      public <T> T viewDocument(final String documentReference, final Collection<String> indexes, final Processor<T> processor) throws ViewDocumentNotFoundException, ViewNoReferenceFieldException, ReferenceFieldBlankException {
          final String referenceFieldValue = getReferenceFieldValue(documentReference, indexes);
  
          final AciParameters viewParameters = new AciParameters(ViewActions.View.name());
          viewParameters.add(ViewParams.NoACI.name(), true);
          viewParameters.add(ViewParams.Reference.name(), referenceFieldValue);
          viewParameters.add(ViewParams.EmbedImages.name(), true);
          viewParameters.add(ViewParams.StripScript.name(), true);
          viewParameters.add(ViewParams.OriginalBaseURL.name(), true);
  
          try {
              return viewAciService.executeAction(viewParameters, processor);
          } catch (final AciServiceException e) {
              throw new ViewServerErrorException(documentReference, e);
          }
      }
docs: Provides an HTML rendering of the given IDOL document reference. This first performs a GetContent to make sure the
  document exists, then reads the configured reference field and passes the value of the field to ViewServer.
  
  @param documentReference The IDOL document reference of the document to view
  @param indexes           The IDOL databases containing the reference (no restriction set on getContent query if this is an empty collection)
  @param processor         The processor that will consume the ViewServer output
  @param <T>               The return type of the processor
  @return The return value of the given processor
  @throws ViewDocumentNotFoundException If the given document reference does not exist in IDOL
  @throws ViewNoReferenceFieldException If the document with the given reference does not have the required reference field
  @throws ReferenceFieldBlankException  If the configured reference field name is blank
  @throws ViewServerErrorException      If ViewServer returns a status code outside the 200 range