code: @Override
      protected void prepareCoreDirection(final FwCoreDirection direction) {
          // this configuration is on fess_env.properties because this is true only when development
          direction.directDevelopmentHere(fessConfig.isDevelopmentHere());
  
          // titles of the application for logging are from configurations
          direction.directLoggingTitle(fessConfig.getDomainTitle(), fessConfig.getEnvironmentTitle());
  
          // this configuration is on sea_env.properties because it has no influence to production
          // even if you set true manually and forget to set false back
          direction.directFrameworkDebug(fessConfig.isFrameworkDebug()); // basically false
  
          // you can add your own process when your application is booting or closing
          direction.directCurtainBefore(createCurtainBeforeHook());
          direction.directCurtainFinally(createCurtainFinallyHook()); // when destroy
  
          direction.directSecurity(createSecurityResourceProvider());
          direction.directTime(createTimeResourceProvider());
          direction.directMail(createFessMailDeliveryDepartmentCreator().create());
          direction.directJson(createJsonResourceProvider());
      }
docs: ======