code: public Deployment setName(final String name) {
          if (name == null) {
              this.name = content.resolvedName();
              if (this.name == null) {
                  throw new IllegalArgumentException("The name parameter is required and could not be resolved from the content: "
                          + content);
              }
          } else {
              this.name = name;
          }
          return this;
      }
docs: Sets the name for the deployment. This can be {@code null} for a deployment created based on a file system path.
  If the deployment was created using in input stream and the value is {@code null} an {@link IllegalArgumentException}
  will be thrown.
  
  @param name the name for the deployment
  
  @return this deployment