@Override
        Detector createComposite(Class<? extends Detector> detectorClass,
                                 List<Detector> childDetectors,
                                 Set<Class<? extends Detector>> excludeDetectors,
                                 Map<String, Param> params, MimeTypes mimeTypes,
                                 ServiceLoader loader)
                throws InvocationTargetException, IllegalAccessException, InstantiationException {
            Detector detector = null;
            Constructor<? extends Detector> c;
            MediaTypeRegistry registry = mimeTypes.getMediaTypeRegistry();

            // Try the possible default and composite detector constructors
            if (detector == null) {
                try {
                    c = detectorClass
                            .getConstructor(MimeTypes.class, ServiceLoader.class, Collection.class);
                    detector = c.newInstance(mimeTypes, loader, excludeDetectors);
                } catch (NoSuchMethodException me) {
                    //swallow
                }
            }
            if (detector == null) {
                try {
                    c = detectorClass
                            .getConstructor(MediaTypeRegistry.class, List.class, Collection.class);
                    detector = c.newInstance(registry, childDetectors, excludeDetectors);
                } catch (NoSuchMethodException me) {
                    //swallow
                }
            }
            if (detector == null) {
                try {
                    c = detectorClass.getConstructor(MediaTypeRegistry.class, List.class);
                    detector = c.newInstance(registry, childDetectors);
                } catch (NoSuchMethodException me) {
                    //swallow
                }
            }
            if (detector == null) {
                try {
                    c = detectorClass.getConstructor(List.class);
                    detector = c.newInstance(childDetectors);
                } catch (NoSuchMethodException me) {
                    //swallow
                }
            }

            return detector;
        }
Gets parameters from a given

@param el xml node which has {@link #PARAMS_TAG_NAME} child
@return Map of key values read from xml
tika-core/src/main/java/org/apache/tika/config/TikaConfig.java