assembler.createProxyFactory(config.configureService(ProxyFactoryInfo.class));
assembler.createTransactionManager(config.configureService(TransactionServiceInfo.class));
assembler.createSecurityService(config.configureService(SecurityServiceInfo.class));
EjbJar ejbJar = new EjbJar();
ejbJar.addEnterpriseBean(new SingletonBean(Color.class));
ejbJar.addEnterpriseBean(new SingletonBean(Red.class));
ejbJar.addEnterpriseBean(new SingletonBean(Crimson.class));
ejbJar.addEnterpriseBean(new SingletonBean(Scarlet.class));
List<ContainerConcurrency> declared = ejbJar.getAssemblyDescriptor().getContainerConcurrency();
declared.add(new ContainerConcurrency(ConcurrentLockType.WRITE, "*", "*", "*"));
declared.add(new ContainerConcurrency(ConcurrentLockType.READ, "*", "Crimson", "*"));
declared.add(new ContainerConcurrency(ConcurrentLockType.READ, Color.class.getName(), "Scarlet", "*"));