private static void validate(BundleInstantiationSpecification instSpec) {
        List<String> forbiddenClasses = List.of(SearchHandler.HANDLER_CLASSNAME, PROCESSING_HANDLER_CLASS);

        for (String forbiddenClass: forbiddenClasses) {
            if (forbiddenClass.equals(instSpec.getClassName())) {
                throw new IllegalArgumentException("Setting up " + forbiddenClass + " manually is not supported");
            }
        }
    }
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