robe-mail/src/main/java/io/robe/mail/MailBundle.java
@Override
    public void run(T configuration, Environment environment) throws Exception {
        if (configuration.getMail() != null && configuration instanceof HasMailConfiguration && configuration instanceof Configuration) {
	        MailManager.setSender(new MailSender(configuration.getMail()));
        } else {
            LOGGER.warn("Bundle included but no configuration (mail) found at yml.");
        }
    }
@Override
    public void run(T configuration, Environment environment) throws Exception {
        if (configuration.getMail() != null && configuration instanceof HasMailConfiguration && configuration instanceof Configuration) {
	        MailManager.setSender(new MailSender(configuration.getMail()));
        } else {
            LOGGER.warn("Bundle included but no configuration (mail) found at yml.");
        }
    }
Initializes the environment.

@param configuration the configuration object
@param environment   the io.robe.admin's {@link io.dropwizard.setup.Environment}
@throws Exception if something goes wrong