}
catch ( NoSuchPrincipalException e )
{
// Create a random 12-character password
password = TextUtil.generateRandomPassword();
UserProfile profile = userDb.newProfile();
profile.setLoginName( ADMIN_ID );
profile.setFullname( ADMIN_NAME );
profile.setPassword( password );
userDb.save( profile );
}
// Create a new admin group
GroupManager groupMgr = m_engine.getGroupManager();