code: public void setAppServerDefaultDeploymentScanEnabled(boolean enabled) throws Exception {
          final String[] addressArr = { SUBSYSTEM, DEPLOYMENT_SCANNER, SCANNER, "default" };
          final Address address = Address.root().add(addressArr);
          final ModelNode req = createWriteAttributeRequest("scan-enabled", Boolean.toString(enabled), address);
          final ModelNode response = execute(req);
  
          if (!isSuccess(response)) {
              throw new FailureException(response);
          }
          return;
      }
docs: Enabled or disables the default deployment scanner.
  @param enabled the new status to be set
  @throws Exception any error