private static Map<String, DocumentType> retrieveDocumentTypes(DocumentTypeManager documentTypeManager) {
        Map<String, DocumentType> documentTypes = new HashMap<>() ;
         for (Iterator<DocumentType> i = documentTypeManager.documentTypeIterator(); i.hasNext();) {
            DocumentType type = i.next();
            documentTypes.put(type.getName(), type);
        }
        return Collections.unmodifiableMap(documentTypes);
    }
For doing document processing with {@link JDisc}.

@author Einar M R Rosenvinge
application/src/main/java/com/yahoo/application/container/DocumentProcessing.java