public void compose( final ComponentManager componentManager )
throws ComponentException {
super.compose(componentManager);
mailServer = (MailServer)componentManager.
lookup( "org.apache.james.services.MailServer" );
UsersStore usersStore = (UsersStore)componentManager.
lookup( "org.apache.james.services.UsersStore" );
users = usersStore.getRepository("LocalUsers");
if (users == null) {
throw new ComponentException("The user repository could not be found.");
}
}