[JAVA7 Upgrade] Replace try/finally with