code: public Container deploy() throws DeploymentException {
          Archive deployment = createDefaultDeployment();
          if (deployment == null) {
              throw new DeploymentException("Unable to create default deployment");
          } else {
              return deploy(deployment);
          }
      }
docs: Deploy the default WAR deployment.
  <p/>
  <p>For WAR-based applications, the primary WAR artifact iwll be deployed.</p>
  
  @return The container.
  @throws DeploymentException if an error occurs.