setPrincipalName() and getId(Object key)