While this is better it's still not perfect IMO because ``PasswordClass`` is an implementation detail. It doesn't really matter what the class implementing the password property is. What matters is the "role". We recently (4.3M2) transformed XClass properties into components so theoretically it's possible to change the implementation of the password XClass property type. That's why I suggested you to use ``getClassType()``. See the tutorial on how [new property types](http://platform.xwiki.org/xwiki/bin/view/DevGuide/CreatingNewXClassPropertyTypes) can be created.