code: public void add(@Nonnull DeploymentNode deploymentNode, boolean addRelationships) {
          if (deploymentNode == null) {
              throw new IllegalArgumentException("A deployment node must be specified.");
          }
  
          if (addContainerInstancesAndDeploymentNodes(deploymentNode, addRelationships)) {
              Element parent = deploymentNode.getParent();
              while (parent != null) {
                  addElement(parent, addRelationships);
                  parent = parent.getParent();
              }
          }
      }
docs: Adds a deployment node to this view.
  
  @param deploymentNode    the DeploymentNode to add
  @param addRelationships  whether to add relationships to/from the person