Would be nice to do something clever with generics rather than have various XxxAttributeSensor class (for Integer, String, etc). But that's tricky for non-trivial types - Andrew took a look and backed off (or deferred) it I believe.