how about

```ruby
resource_descriptor.states[parent_descriptor.name][state.to_s].tap do |descriptor_state|
  unless descriptor_state
     raise(MissingStateError, "No state descriptor for transition #{parent_descriptor.name} -> #{state.to_s}!") 
  end
end
```