I'll clean this up, it's from before when i was trying to do firstNonNull ( System.getEnv("RABBITMQ_VHOST"), "/"), this solution is ugly however and since we have all the other env-vars in the bundle-context i moved it there.