def apply_nested_hash(hash)
      hash.each do |k, v|
        if v.is_a? Hash
          internal_get(k.to_sym).apply_nested_hash(v)
        else
          internal_set(k.to_sym, v)
        end
      end
    end
def apply_nested_hash(hash)
      hash.each do |k, v|
        if v.is_a? Hash
          internal_get(k.to_sym).apply_nested_hash(v)
        else
          internal_set(k.to_sym, v)
        end
      end
    end
Given a (nested) Hash, apply it to the config object and any contexts.

 This is preferable to converting it to the string representation with
 the #to_dotted_hash method above.

 === Parameters
 hash<Hash>:: The hash to apply to the config oject