def put_object(obj, id)
      id_str = id.to_s
      unless dynamo_get_item(id_str)
        # The is no object with this ID yet. Increase the item counter.
        @item_counter += 1
        dynamo_put_item('item_counter', @item_counter.to_s)
      end

      dynamo_put_item(id.to_s, serialize(obj))
    end
def put_object(obj, id)
      id_str = id.to_s
      unless dynamo_get_item(id_str)
        # The is no object with this ID yet. Increase the item counter.
        @item_counter += 1
        dynamo_put_item('item_counter', @item_counter.to_s)
      end

      dynamo_put_item(id.to_s, serialize(obj))
    end
Store the given object into the cluster files.
 @param obj [Hash] Object as defined by PEROBS::ObjectBase