throws ComponentException
{
mailServer = (MailServer) componentManager.
lookup( "org.apache.james.services.MailServer" );
UsersStore usersStore = (UsersStore) componentManager.
lookup( "org.apache.james.services.UsersStore" );
users = usersStore.getRepository( "LocalUsers" );
scheduler = (TimeScheduler) componentManager.
lookup( "org.apache.avalon.cornerstone.services.scheduler.TimeScheduler" );
imapSystem = (IMAPSystem) componentManager.
lookup( "org.apache.james.imapserver.IMAPSystem" );
imapHost = (Host) componentManager.