Add ability to annotate a POJO so that Principal and Resource objects can be automatically created from them.