code: private void validateApplication(ApplicationDefinition appDef) {
          boolean bSawAgingFreq = false;
          for (String optName : appDef.getOptionNames()) {
              String optValue = appDef.getOption(optName);
              switch (optName) {
              case CommonDefs.OPT_STORAGE_SERVICE:
                  assert optValue.equals(this.getClass().getSimpleName());
                  break;
                  
              case CommonDefs.OPT_AGING_CHECK_FREQ:
                  new TaskFrequency(optValue);
                  bSawAgingFreq = true;
                  break;
                  
              case "auto-merge":
                  new TaskFrequency(optValue);
                  break;
  
              default:
                  throw new IllegalArgumentException("Unknown option for OLAPService application: " + optName);
              }
          }
  
          for (TableDefinition tableDef : appDef.getTableDefinitions().values()) {
              validateTable(tableDef);
          }
          
          if (!bSawAgingFreq) {
              appDef.setOption(CommonDefs.OPT_AGING_CHECK_FREQ, "1 DAY");
          }
      }
docs: Validate the given application for OLAP constraints.