code: public void add(Container container, boolean addRelationships) {
          if (container != null && !container.equals(getContainer())) {
              addElement(container, addRelationships);
          }
      }
docs: Adds an individual container to this view.
  
  @param container         the Container to add
  @param addRelationships  whether to add relationships to/from the container