@Nullable
    public Container getContainerWithName(@Nonnull String name) {
        if (name == null || name.trim().length() == 0) {
            throw new IllegalArgumentException("A container name must be provided.");
        }

        for (Container container : getContainers()) {
            if (container.getName().equals(name)) {
                return container;
            }
        }

        return null;
    }
@ Nullable public Container getContainerWithName ( @ Nonnull String name ) { if ( name == null || name . trim ( ) . length ( ) == 0 ) { throw new IllegalArgumentException ( "A container name must be provided." ) ; } for ( Container container : getContainers ( ) ) { if ( container . getName ( ) . equals ( name ) ) { return container ; } } return null ; }
Gets the container with the specified name.

@param name  the name of the {@link Container}
@return the Container instance with the specified name, or null if it doesn't exist
@throws IllegalArgumentException     if the name is null or empty