You can get rid of this block by doing conf.get(DEBUG_PROP, DEFAULT_DEBUG_PROP) above instead.