def process_responses(args)
      #the transaction listener is required
      if(!args.has_key?(:transaction_listener)) then
        raise ArgumentError, "The arguments hash must contain an entry for transaction listener!"
      end

      transaction_listener = args[:transaction_listener]
      batch_listener = args[:batch_listener] ||= nil
      path_to_responses = args[:path_to_responses] ||= (File.dirname(@path_to_batches) + '/' + RESPONSE_PATH_DIR)
      delete_batch_files = args[:deleteBatchFiles] ||= get_config(:deleteBatchFiles, args)

      if(path_to_responses[-1,1] != '/' && path_to_responses[-1,1] != '\\') then
        path_to_responses = path_to_responses + File::SEPARATOR
      end

      Dir.foreach(path_to_responses) do |filename|
        if ((filename =~ /#{RESPONSE_FILE_PREFIX}\d+#{COMPLETE_FILE_SUFFIX}.asc#{RECEIVED_FILE_SUFFIX}\z/) != nil) then
          process_response(path_to_responses + filename, transaction_listener, batch_listener)
          File.rename(path_to_responses + filename, path_to_responses + filename + '.processed')
        end
      end

      if delete_batch_files
        delete_files_in_path(path_to_responses, /#{RESPONSE_FILE_PREFIX}\d+#{COMPLETE_FILE_SUFFIX}.asc#{RECEIVED_FILE_SUFFIX}.processed\z/)
      end
    end
def process_responses(args)
      #the transaction listener is required
      if(!args.has_key?(:transaction_listener)) then
        raise ArgumentError, "The arguments hash must contain an entry for transaction listener!"
      end

      transaction_listener = args[:transaction_listener]
      batch_listener = args[:batch_listener] ||= nil
      path_to_responses = args[:path_to_responses] ||= (File.dirname(@path_to_batches) + '/' + RESPONSE_PATH_DIR)
      delete_batch_files = args[:deleteBatchFiles] ||= get_config(:deleteBatchFiles, args)

      if(path_to_responses[-1,1] != '/' && path_to_responses[-1,1] != '\\') then
        path_to_responses = path_to_responses + File::SEPARATOR
      end

      Dir.foreach(path_to_responses) do |filename|
        if ((filename =~ /#{RESPONSE_FILE_PREFIX}\d+#{COMPLETE_FILE_SUFFIX}.asc#{RECEIVED_FILE_SUFFIX}\z/) != nil) then
          process_response(path_to_responses + filename, transaction_listener, batch_listener)
          File.rename(path_to_responses + filename, path_to_responses + filename + '.processed')
        end
      end

      if delete_batch_files
        delete_files_in_path(path_to_responses, /#{RESPONSE_FILE_PREFIX}\d+#{COMPLETE_FILE_SUFFIX}.asc#{RECEIVED_FILE_SUFFIX}.processed\z/)
      end
    end
Params:
 +args+:: A +Hash+ containing arguments for the processing process. This hash MUST contain an entry
 for a transaction listener (see +DefaultLitleListener+). It may also include a batch listener and a
 custom path where response files from the server are located (if it is not provided, we'll guess the position)