code: private List<Task> getAppTasks(ApplicationDefinition appDef) {
          List<Task> appTasks = new ArrayList<>();
          try {
              StorageService service = SchemaService.instance().getStorageService(appDef);
              Collection<Task> appTaskColl = service.getAppTasks(appDef);
              if (appTaskColl != null) {
                  appTasks.addAll(service.getAppTasks(appDef));
              }
          } catch (IllegalArgumentException e) {
              // StorageService has not been initialized; no tasks for this application.
          }
          return appTasks;
      }
docs: Ask the storage manager for the given application for its required tasks.