Shouldn't this apply to more code above? (the try block)
Too bad we can't use java 7 constructs.