Optimized code for Reverse Phone Java sample app.