code: @Programmatic
      public ApplicationTenancy newTenancy(
              final String name,
              final String path,
              final ApplicationTenancy parent) {
          ApplicationTenancy tenancy = findByPath(path);
          if (tenancy == null) {
              tenancy = getApplicationTenancyFactory().newApplicationTenancy();
              tenancy.setName(name);
              tenancy.setPath(path);
              tenancy.setParent(parent);
              container.persist(tenancy);
          }
          return tenancy;
      }
docs: region > newTenancy