@Override
  public void run(CodeCenterServerProxy proxy) throws Exception {
    // Create the attachment create bean
    String path = ds.getFile().getPath();

    ApplicationNameVersionToken appToken = new ApplicationNameVersionToken();
    appToken.setName(applicationName);
    appToken.setVersion(applicationVersion);

    ApplicationAttachmentCreate attachmentCreateBean = new ApplicationAttachmentCreate();
    attachmentCreateBean.setApplicationId(appToken);
    attachmentCreateBean.setAttachmentContent(new DataHandler(ds));
    attachmentCreateBean.setDescription(descripion);
    attachmentCreateBean.setFileName(path);
    attachmentCreateBean.setName(attachmentName != null ? attachmentName : ds.getName());

    // Add the attachment
    String attachmentId =
        proxy.getApplicationApi().createApplicationAttachment(attachmentCreateBean);

    // Print success information
    System.out.println(
        "Successfully added attachment \""
            + path
            + "\""
            + (attachmentName != null ? " as \"" + attachmentName + "\"" : "")
            + " to application \""
            + applicationName
            + "\" version \""
            + applicationVersion
            + "\" with attachment ID "
            + attachmentId
            + ".");
  }
  @Override
  public void run(CodeCenterServerProxy proxy) throws Exception {
    // Create the username token
    UserNameToken userNameToken = new UserNameToken();
    userNameToken.setName(username);

    // Create the application
    proxy.getUserApi().deleteUser(userNameToken);

    // Print success information
    System.out.println("Successfully deleted user \"" + username + "\".");
  }