def sync_it_now
      puts "Attempt Sync"

      # Getting the last sync value.
      last_update_at = get_last_update_at

      # querying the page.
      page = @mechanize_agent.get("#{ChronuscopClient.configuration_object.chronuscop_server_address}/projects/#{ChronuscopClient.configuration_object.project_number}/translations.xml/?auth_token=#{ChronuscopClient.configuration_object.api_token}&last_update_at=#{last_update_at}")

      # converting the returned xml page into a hash.
      words_hash = XmlSimple.xml_in(page.body)

      # catching the case when no-translations are returned.
      if(!words_hash) then
        puts "Nothing new added."
        return
      end

      # collecting the translations array.
      all_translations = words_hash["translation"]

      # catching the case when no-translations are returned.
      if(!all_translations) then
        puts "Nothing new added."
        return
      end


      all_translations.each do |t|
        # Inserting into the redis store.
        @redis_agent.set "#{t["key"]}","#{t["value"]}"

        # Bad hack used here. Should fix this.
        str = t["updated-at"][0]["content"]
        key_updated_at = xml_time_to_integer(str)

        # Updating the value last_update_at
        if(key_updated_at > last_update_at) then
          last_update_at = key_updated_at
        end

      end

      # Writing the value of last_update_at to the file.
      write_last_update(last_update_at.to_i)
      puts "Finished synchronizing !!!"
    end
def sync_it_now
      puts "Attempt Sync"

      # Getting the last sync value.
      last_update_at = get_last_update_at

      # querying the page.
      page = @mechanize_agent.get("#{ChronuscopClient.configuration_object.chronuscop_server_address}/projects/#{ChronuscopClient.configuration_object.project_number}/translations.xml/?auth_token=#{ChronuscopClient.configuration_object.api_token}&last_update_at=#{last_update_at}")

      # converting the returned xml page into a hash.
      words_hash = XmlSimple.xml_in(page.body)

      # catching the case when no-translations are returned.
      if(!words_hash) then
        puts "Nothing new added."
        return
      end

      # collecting the translations array.
      all_translations = words_hash["translation"]

      # catching the case when no-translations are returned.
      if(!all_translations) then
        puts "Nothing new added."
        return
      end


      all_translations.each do |t|
        # Inserting into the redis store.
        @redis_agent.set "#{t["key"]}","#{t["value"]}"

        # Bad hack used here. Should fix this.
        str = t["updated-at"][0]["content"]
        key_updated_at = xml_time_to_integer(str)

        # Updating the value last_update_at
        if(key_updated_at > last_update_at) then
          last_update_at = key_updated_at
        end

      end

      # Writing the value of last_update_at to the file.
      write_last_update(last_update_at.to_i)
      puts "Finished synchronizing !!!"
    end
This method keeps the remote-keys and the local-keys synchronized.
 This method should be called only after initializing the configuration
 object as it uses those configuration values.