private static BundleInstantiationSpecification setBundleForComponent(BundleInstantiationSpecification spec) {
        if (PlatformBundles.isSearchAndDocprocClass(spec.getClassName()))
            return spec.inBundle(PlatformBundles.SEARCH_AND_DOCPROC_BUNDLE);
        else if (PlatformBundles.isModelIntegrationClass(spec.getClassName()))
            return spec.inBundle(PlatformBundles.MODEL_INTEGRATION_BUNDLE);
        else
            return spec;
    }
This object builds a bundle instantiation spec from an XML element.

@author gjoranv
config-model/src/main/java/com/yahoo/vespa/model/container/xml/BundleInstantiationSpecificationBuilder.java