security: In IdentityManager, added setDefaultIdentity.