Principal[] principals = null;
UserProfile profile = null;
UserDatabase db = m_engine.getUserManager().getUserDatabase();
try
{
profile = db.find( name );
principals = db.getPrincipals( profile.getLoginName() );
for (int i = 0; i < principals.length; i++)
{
principal = principals[i];
if ( principal.getName().equals( name ) )