code: public static EJBContainer createEJBContainer(Map<?, ?> properties)
        throws EJBException
     {
        for(EJBContainerProvider factory : factories)
        {
           EJBContainer container = factory.createEJBContainer(properties);
           if(container != null)
              return container;
        }
        throw new EJBException("Unable to instantiate container with factories " + factories);
     }
docs: Create and initialize an embeddable EJB container with an
  set of configuration properties and names of modules to be initialized.
  
  @param properties One or more spec-defined or vendor-specific properties.
  The spec reserves the prefix "javax.ejb." for spec-defined properties.
  @return EJBContainer instance
  @throws EJBException Thrown if the container or application could not
  be successfully initialized.