The function is whole about selecting and updating a structure, only calls specialized functions almost no logic in there. I can change it to something like
```
if (s == "vnc1" || s == "vnchttpd1")
{
    return m;
}
```
instead of encapsulating major part of the function in huge if.