public ReconciliationContext(ReconciliationService.ReconAction reconAction,ObjectMapping mapping,Context callingContext,JsonValue reconParams,JsonValue overridingConfig,ReconciliationService service) throws BadRequestException {
  this.reconAction=reconAction;
  this.mapping=mapping;
  this.reconId=callingContext.getId();
  this.reconStat=new ReconciliationStatistic(this);
  this.reconParams=reconParams;
  this.overridingConfig=overridingConfig;
  this.service=service;
  reconTypeHandler=createReconTypeHandler(reconAction);
  int noOfThreads=mapping.getTaskThreads();
  if (noOfThreads > 0) {
    executor=Executors.newFixedThreadPool(noOfThreads);
  }
 else {
    executor=null;
  }
}

public ReconciliationContext ( ReconciliationService . ReconAction reconAction , ObjectMapping mapping , Context callingContext , JsonValue reconParams , JsonValue overridingConfig , ReconciliationService service ) throws BadRequestException { this . reconAction = reconAction ; this . mapping = mapping ; this . reconId = callingContext . getId ( ) ; this . reconStat = new ReconciliationStatistic ( this ) ; this . reconParams = reconParams ; this . overridingConfig = overridingConfig ; this . service = service ; reconTypeHandler = createReconTypeHandler ( reconAction ) ; int noOfThreads = mapping . getTaskThreads ( ) ; if ( noOfThreads > 0 ) { executor = Executors . newFixedThreadPool ( noOfThreads ) ; } else { executor = null ; } }
creates the instance with info from the current call context
