code: @Override
      public Container create(ContainerDef definition, ServiceLoader loader) {
          Validate.notNull(definition, "Definition must be specified");
  
          try {
              // TODO: this whole Classloading thing is a HACK and does not work. Need to split out into multiple JVMs for multi container testing
              //         ClassLoader containerClassLoader;
              //         if(definition.getDependencies().size() > 0)
              //         {
              //            final MavenDependencyResolver resolver = DependencyResolvers.use(MavenDependencyResolver.class).artifacts(
              //                  definition.getDependencies().toArray(new String[0]));
              //
              //            URL[] resolvedURLs = MapObject.convert(resolver.resolveAsFiles());
              //
              //            containerClassLoader = new FilteredURLClassLoader(resolvedURLs, "org.jboss.(arquillian|shrinkwrap)..*");
              //         }
              //         else
              //         {
              //            containerClassLoader = LocalContainerRegistry.class.getClassLoader();
              //         }
              //
              return addContainer(
                  //before a Container is added to a collection of containers, inject into its injection point
                  injector.inject(new ContainerImpl(
                      definition.getContainerName(),
                      loader.onlyOne(DeployableContainer.class),
                      definition)));
          } catch (Exception e) {
              throw new ContainerCreationException("Could not create Container " + definition.getContainerName(), e);
          }
      }
docs: /* (non-Javadoc)
  @see org.jboss.arquillian.impl.domain.ContainerRegistryA#create(org.jboss.arquillian.impl.configuration.api.ContainerDef, org.jboss.arquillian.core.spi.ServiceLoader)