/**
* @see org.apache.mailet.GenericMailet#init()
*/
public void init() throws MessagingException {
super.init();
ServiceManager compMgr = (ServiceManager) getMailetContext()
.getAttribute(Constants.AVALON_COMPONENT_MANAGER);
UsersStore usersStore;
try {
usersStore = (UsersStore) compMgr.lookup(UsersStore.ROLE);
enableAliases = new Boolean(getInitParameter("enableAliases",
getMailetContext().getAttribute(Constants.DEFAULT_ENABLE_ALIASES).toString()
)).booleanValue();
enableForwarding = new Boolean(getInitParameter("enableForwarding",
getMailetContext().getAttribute(Constants.DEFAULT_ENABLE_FORWARDING).toString()
)).booleanValue();
ignoreCase = new Boolean(getInitParameter("ignoreCase",
getMailetContext().getAttribute(Constants.DEFAULT_IGNORE_USERNAME_CASE).toString()
)).booleanValue();
String userRep = getInitParameter("usersRepository");
if (userRep == null || userRep.length() == 0) {
try {
usersRepository = (UsersRepository) compMgr
.lookup(UsersRepository.ROLE);
} catch (ServiceException e) {
log("Failed to retrieve UsersRepository component:"
+ e.getMessage());
}