public static Listener using(ContainerInstance container) {
        return new Listener(Collections.singletonList(initAction(CONTAINER_ATTRIBUTE_NAME, container)));
    }
public static Listener using ( ContainerInstance container ) { return new Listener ( Collections . singletonList ( initAction ( CONTAINER_ATTRIBUTE_NAME , container ) ) ) ; }
Creates a new Listener that uses the given {@link ContainerInstance} (e.g. {@link org.jboss.weld.environment.se.WeldContainer}) instead of initializing a
new Weld container instance. The listener does not take over the responsibility for container instance lifecycle management. It is the caller's
responsibility to shut down the container instance properly. The listener will not shut down the container instance when the Servlet context is
destroyed.

@param container the container instance to be used
@return a new Listener instance