@SuppressWarnings("unchecked")
        CT loadOverall(Element element, MimeTypes mimeTypes, ServiceLoader loader)
                throws TikaException, IOException {
            List<T> loaded = new ArrayList<>();

            // Find the children of the parent tag, if any
            for (Element le : getTopLevelElementChildren(element, getParentTagName(),
                    getLoaderTagName())) {
                T loadedChild = loadOne(le, mimeTypes, loader);
                if (loadedChild != null) {
                    loaded.add(loadedChild);
                }
            }

            // Build the classes, and wrap as needed
            if (loaded.isEmpty()) {
                // Nothing defined, create a Default
                return createDefault(mimeTypes, loader);
            } else if (loaded.size() == 1) {
                T single = loaded.get(0);
                if (isComposite(single)) {
                    // Single Composite defined, use that
                    return (CT) single;
                }
            } else if (!supportsComposite()) {
                throw new TikaConfigException(
                        "Composite not supported for " + getParentTagName() +
                                ". Must specify only one child!");
            }
            // Wrap the defined parsers/detectors up in a Composite
            return createComposite(loaded, mimeTypes, loader);
        }
Returns the configured translator instance.

@return configured translator
tika-core/src/main/java/org/apache/tika/config/TikaConfig.java