Optimized code for Person Lookup Java sample app.