well, you can assign the termsEnum outside of the try / finally and make it final so that case is just gone then. Now we are left with success or failure so that should work again?