code: @Override
      public WSJobInstance updateJobInstanceAndExecutionWithInstanceStateAndBatchStatus(long instanceId, long executionId,
                                                                                        final InstanceState state, final BatchStatus batchStatus) {
  
          JobInstanceEntity retMe = null;
  
          //Update the JobInstance
          retMe = (JobInstanceEntity) persistenceManagerService.updateJobInstanceWithInstanceStateAndBatchStatus(instanceId, state, batchStatus, new Date());
  
          //Update the Job Execution Instance
          persistenceManagerService.updateJobExecutionAndInstanceOnStatusChange(executionId, batchStatus, new Date());
  
          return retMe;
      }
docs: @return a updated JobInstance for the given appName and JSL file.
  
  Note: Added for updating jobs to FAILED when JSL cannot be located, hence job fails.
  {@inheritDoc}