code: private Collection<ApplicationDefinition> findAllApplications(Tenant tenant) {
          List<ApplicationDefinition> result = new ArrayList<>();
          Iterator<DRow> rowIter =
              DBService.instance(tenant).getAllRows(SchemaService.APPS_STORE_NAME).iterator();
          while (rowIter.hasNext()) {
              DRow row = rowIter.next();
              ApplicationDefinition appDef = loadAppRow(tenant, getColumnMap(row.getAllColumns(1024).iterator()));
              if (appDef != null) {
                  result.add(appDef);
              }
          }
          return result;
      }
docs: Get all application definitions for the given Tenant.