code: @Bean
    public JobFactory<MappingJobExecution> mappingJobFactory() {
      return new JobFactory<MappingJobExecution>() {
        @Override
        public Job createJob(MappingJobExecution mappingJobExecution) {
          final String mappingProjectId = mappingJobExecution.getMappingProjectId();
          final String targetEntityTypeId = mappingJobExecution.getTargetEntityTypeId();
          final String packageId = mappingJobExecution.getPackageId();
          final String label = mappingJobExecution.getLabel();
          final Boolean addSourceAttribute = mappingJobExecution.isAddSourceAttribute();
          final String resultUrl =
              menuReaderService.findMenuItemPath(DataExplorerController.ID)
                  + "?entity="
                  + targetEntityTypeId;
          mappingJobExecution.setResultUrl(resultUrl);
          return progress ->
              mappingService.applyMappings(
                  mappingProjectId,
                  targetEntityTypeId,
                  addSourceAttribute,
                  packageId,
                  label,
                  progress);
        }
      };
    }
docs: The MappingJob Factory bean.