Yep. I borrowed that idiom from the dropwizard source code.