code: public static Deployment of(final InputStream content, final String name) {
          final DeploymentContent deploymentContent = DeploymentContent.of(Assert.checkNotNullParam("content", content));
          return new Deployment(deploymentContent, Assertions.requiresNotNullOrNotEmptyParameter("name", name));
      }
docs: Creates a new deployment for the input stream. The name is required for the deployment and cannot be {@code null}.
  If {@link #setName(String)} with a {@code null} argument is invoked when using this static factory an
  {@link IllegalArgumentException} will be thrown.
  <p>
  The {@linkplain InputStream content} will be copied, stored in-memory and then closed. Large content should be
  written to a file and the {@link #of(Path)} or {@link #of(File)} static factory methods should be used.
  </p>
  
  @param content the input stream representing the content
  @param name    the name for the deployment
  
  @return the deployment