docs: public TenantOperationResponse importWithResources(
              final ITenant tenant, final Set<Resource> resources) {
          /*
           * First load dom4j Documents and sort the entity files into the proper order
           */
          final Map<PortalDataKey, Set<BucketTuple>> importQueue;
          try {
              importQueue = prepareImportQueue(tenant, resources);
          } catch (Exception e) {
              final TenantOperationResponse error =
                      new TenantOperationResponse(this, TenantOperationResponse.Result.ABORT);
              error.addMessage(
                      createLocalizedMessage(
                              FAILED_TO_LOAD_TENANT_TEMPLATE, new String[] {tenant.getName()}));
              return error;
          }
  
          log.trace(
                  "Ready to import data entity templates for new tenant '{}';  importQueue={}",
                  tenant.getName(),
                  importQueue);
  
          // We're going to report on every item imported;  TODO it would be better
          // if we could display human-friendly entity type name + sysid (fname, etc.)
          final StringBuilder importReport = new StringBuilder();
  
          /*
           * Now import the identified entities each bucket in turn
           */
          try {
              importQueue(tenant, importQueue, importReport);
          } catch (Exception e) {
              final TenantOperationResponse error =
                      new TenantOperationResponse(this, TenantOperationResponse.Result.ABORT);
              error.addMessage(finalizeImportReport(importReport));
              error.addMessage(
                      createLocalizedMessage(
                              FAILED_TO_IMPORT_TENANT_TEMPLATE_DATA,
                              new String[] {tenant.getName()}));
              return error;
          }
  
          TenantOperationResponse rslt =
                  new TenantOperationResponse(this, TenantOperationResponse.Result.SUCCESS);
          rslt.addMessage(finalizeImportReport(importReport));
          rslt.addMessage(
                  createLocalizedMessage(TENANT_ENTITIES_IMPORTED, new String[] {tenant.getName()}));
          return rslt;
      }