private static boolean isPrimitive(Class itemClass) {
        for (int i = 0; i < SUPPORTED_PRIMITIVES.length; i++) {
            if (SUPPORTED_PRIMITIVES[i].equals(itemClass)) {
                return true;
            }
        }
        return false;
    }
Use this to build a list of components for a composite item (e.g.
CompositeMetadataFilter, FetcherManager), each with their own configurations

@param compositeElementName
@param itemName
@param is
@throws TikaConfigException
@throws IOException
tika-core/src/main/java/org/apache/tika/config/ConfigBase.java