Autonomic agent monitoring

Try to adopt something like...

```
String result = null;
if( ... )
    result = ...;

return result;
```

This makes the code easier to debug by setting a break point in a single location.