ClassFilter mcAnnFilter = new PackageClassFilter(new String[]{"org.jboss.beans.metadata.api.annotations"});
ClassFilter filter = new CombiningClassFilter(false, new ClassFilter[]{ClassFilter.JAVA_ONLY, mcAnnFilter});
ParentPolicy policy = new ParentPolicy(filter, ClassFilter.NOTHING);
system.getDefaultDomain().setParentPolicy(policy);
AbstractLevelClassLoaderSystemDeployer clsd = new AbstractLevelClassLoaderSystemDeployer();
clsd.setClassLoading(classLoading);
clsd.setSystem(system);
GenericAnnotationDeployer gad = new GenericAnnotationDeployer();
KernelDeploymentDeployer kernelDeploymentDeployer = new KernelDeploymentDeployer();
BeanScanningDeployer bsd = new BeanScanningDeployer();
BeanMetaDataDeployer beanMetaDataDeployer = new BeanMetaDataDeployer(kernel);