def state_dep_for(state_name, create = true)
      dep_ivar_name = :"@#{state_name}_dep"
      dep = instance_variable_get(dep_ivar_name)
      if !dep && create
        dep = Dependency.new
        instance_variable_set(dep_ivar_name, dep)
      end

      dep
    end
def state_dep_for(state_name, create = true)
      dep_ivar_name = :"@#{state_name}_dep"
      dep = instance_variable_get(dep_ivar_name)
      if !dep && create
        dep = Dependency.new
        instance_variable_set(dep_ivar_name, dep)
      end

      dep
    end
Get a state ivar for state_name
 @params [String] the name of the state variable
 @params [Boolean] if true, one will be created if it does not exist