code: function (config) {
          config = config || {};
  
          if (config.onStart !== undefined) {
              if (!isFunction(config.onStart)) {
                  throw new core.TypeError({
                      code: 'application-configure',
                      message: "config.onStart must be a function"
                  });
              }
  
              this.onStart = config.onStart;
          }
  
          if (config.onStop !== undefined) {
              if (!isFunction(config.onStop)) {
                  throw new core.TypeError({
                      code: 'application-configure',
                      message: "config.onStop must be a function"
                  });
              }
              this.onStop = config.onStop;
          }
  
          return this;
      }
docs: Configure the application
  
  @param {Object} config
  @return this