Use governator with dropwizard-guice to avoid : "The dropwizard environment has not yet been set."