code duplication. It should be 
```
  hn_value = case UI.QueryWidget(Id("MODIFY_RESOLV"), :Value)
     when :custom
         UI.QueryWidget(Id("PLAIN_POLICY"), :Value)
     when :auto
        :auto
     else
        nil
  end

  SetHnItem( "PLAIN_POLICY", hn_value)
```