Creating the local variable is probably not necessary.  You can just call getResourceBundle() the two times its needed, and let the method return it.  The bundle is cached and fast enough to access from the error code path.